diff --git a/edx_rest_framework_extensions/auth/jwt/tests/test_authentication.py b/edx_rest_framework_extensions/auth/jwt/tests/test_authentication.py index 2adaee8a..c50800f1 100644 --- a/edx_rest_framework_extensions/auth/jwt/tests/test_authentication.py +++ b/edx_rest_framework_extensions/auth/jwt/tests/test_authentication.py @@ -251,6 +251,11 @@ def test_authenticate_with_correct_jwt_cookie_and_django_request( mock_set_custom_attribute.assert_any_call('jwt_auth_with_django_request', True) mock_set_custom_attribute.assert_any_call('jwt_auth_result', 'success-cookie') + @override_settings( + EDX_DRF_EXTENSIONS={ + ENABLE_JWT_AND_LMS_USER_EMAIL_MATCH: False + } + ) @mock.patch('edx_rest_framework_extensions.auth.jwt.authentication.set_custom_attribute') def test_authenticate_csrf_protected(self, mock_set_custom_attribute): """