|
@@ -51,7 +51,7 @@ class SignUpLoginTestCase(DesecTestCase):
|
|
LOGIN_ENDPOINT = None
|
|
LOGIN_ENDPOINT = None
|
|
|
|
|
|
REGISTRATION_STATUS = status.HTTP_201_CREATED
|
|
REGISTRATION_STATUS = status.HTTP_201_CREATED
|
|
- LOGIN_STATUS = status.HTTP_200_OK
|
|
|
|
|
|
+ LOGIN_STATUS = status.HTTP_201_CREATED
|
|
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
def __init__(self, *args, **kwargs):
|
|
super().__init__(*args, **kwargs)
|
|
super().__init__(*args, **kwargs)
|
|
@@ -102,24 +102,12 @@ class URLSignUpLoginTestCase(SignUpLoginTestCase):
|
|
REGISTRATION_ENDPOINT = '/api/v1/auth/users/'
|
|
REGISTRATION_ENDPOINT = '/api/v1/auth/users/'
|
|
LOGIN_ENDPOINT = '/api/v1/auth/token/login/'
|
|
LOGIN_ENDPOINT = '/api/v1/auth/token/login/'
|
|
|
|
|
|
- LOGIN_STATUS = status.HTTP_201_CREATED
|
|
|
|
-
|
|
|
|
|
|
|
|
class LegacyURLSignUpLoginTestCase(SignUpLoginTestCase):
|
|
class LegacyURLSignUpLoginTestCase(SignUpLoginTestCase):
|
|
|
|
|
|
REGISTRATION_ENDPOINT = '/api/v1/auth/users/create/'
|
|
REGISTRATION_ENDPOINT = '/api/v1/auth/users/create/'
|
|
LOGIN_ENDPOINT = '/api/v1/auth/token/create/'
|
|
LOGIN_ENDPOINT = '/api/v1/auth/token/create/'
|
|
|
|
|
|
- LOGIN_STATUS = status.HTTP_201_CREATED
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-class LegacyURLSignUpLoginTestCase2(SignUpLoginTestCase):
|
|
|
|
-
|
|
|
|
- REGISTRATION_ENDPOINT = '/api/v1/auth/users/create/'
|
|
|
|
- LOGIN_ENDPOINT = '/api/v1/auth/token/create'
|
|
|
|
-
|
|
|
|
- LOGIN_STATUS = status.HTTP_200_OK
|
|
|
|
-
|
|
|
|
|
|
|
|
class TokenAuthenticationTestCase(DynDomainOwnerTestCase):
|
|
class TokenAuthenticationTestCase(DynDomainOwnerTestCase):
|
|
|
|
|