mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-12-02 05:43:44 +03:00
Change to string import instead of serializer class
This commit is contained in:
parent
8e939e30ed
commit
12173461ac
|
@ -630,7 +630,7 @@ class APIBasicTests(TestsMixin, TestCase):
|
|||
@override_settings(REST_SESSION_LOGIN=False)
|
||||
@override_settings(
|
||||
REST_AUTH_SERIALIZERS={
|
||||
"JWT_TOKEN_CLAIMS_SERIALIZER": TESTTokenObtainPairSerializer
|
||||
"JWT_TOKEN_CLAIMS_SERIALIZER": 'tests.test_api.TESTTokenObtainPairSerializer'
|
||||
}
|
||||
)
|
||||
def test_custom_jwt_claims(self):
|
||||
|
@ -659,7 +659,7 @@ class APIBasicTests(TestsMixin, TestCase):
|
|||
@override_settings(REST_SESSION_LOGIN=False)
|
||||
@override_settings(
|
||||
REST_AUTH_SERIALIZERS={
|
||||
"JWT_TOKEN_CLAIMS_SERIALIZER": TESTTokenObtainPairSerializer
|
||||
"JWT_TOKEN_CLAIMS_SERIALIZER": 'tests.test_api.TESTTokenObtainPairSerializer'
|
||||
}
|
||||
)
|
||||
def test_custom_jwt_claims_cookie_w_authentication(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user