Merge branch 'pr-108' into pr-107

This commit is contained in:
Michael 2020-07-07 23:18:35 -05:00
commit 3bf8c02298

View File

@ -628,7 +628,11 @@ class APIBasicTests(TestsMixin, TestCase):
] ]
)) ))
@override_settings(REST_SESSION_LOGIN=False) @override_settings(REST_SESSION_LOGIN=False)
@override_settings(JWT_TOKEN_CLAIMS_SERIALIZER = 'tests.test_api.TESTTokenObtainPairSerializer') @override_settings(
REST_AUTH_SERIALIZERS={
"JWT_TOKEN_CLAIMS_SERIALIZER": 'tests.test_api.TESTTokenObtainPairSerializer'
}
)
def test_custom_jwt_claims(self): def test_custom_jwt_claims(self):
payload = { payload = {
"username": self.USERNAME, "username": self.USERNAME,
@ -653,7 +657,11 @@ class APIBasicTests(TestsMixin, TestCase):
] ]
)) ))
@override_settings(REST_SESSION_LOGIN=False) @override_settings(REST_SESSION_LOGIN=False)
@override_settings(JWT_TOKEN_CLAIMS_SERIALIZER = 'tests.test_api.TESTTokenObtainPairSerializer') @override_settings(
REST_AUTH_SERIALIZERS={
"JWT_TOKEN_CLAIMS_SERIALIZER": 'tests.test_api.TESTTokenObtainPairSerializer'
}
)
def test_custom_jwt_claims_cookie_w_authentication(self): def test_custom_jwt_claims_cookie_w_authentication(self):
payload = { payload = {
"username": self.USERNAME, "username": self.USERNAME,