mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-25 10:33:45 +03:00
Flake8 issues solved
This commit is contained in:
parent
aab8bf4740
commit
ea1150b421
|
@ -216,5 +216,6 @@ class RegisterSerializer(serializers.Serializer):
|
||||||
class VerifyEmailSerializer(serializers.Serializer):
|
class VerifyEmailSerializer(serializers.Serializer):
|
||||||
key = serializers.CharField()
|
key = serializers.CharField()
|
||||||
|
|
||||||
|
|
||||||
class ResendVerificationEmailSerializer(serializers.Serializer):
|
class ResendVerificationEmailSerializer(serializers.Serializer):
|
||||||
email = serializers.EmailField()
|
email = serializers.EmailField()
|
|
@ -118,6 +118,7 @@ class ResendVerificationEmailView(GenericAPIView):
|
||||||
|
|
||||||
return Response({'detail': _('Verification e-mail sent.')})
|
return Response({'detail': _('Verification e-mail sent.')})
|
||||||
|
|
||||||
|
|
||||||
class SocialLoginView(LoginView):
|
class SocialLoginView(LoginView):
|
||||||
"""
|
"""
|
||||||
class used for social authentications
|
class used for social authentications
|
||||||
|
|
|
@ -521,7 +521,7 @@ class APIBasicTests(TestsMixin, TestCase):
|
||||||
|
|
||||||
@override_settings(ACCOUNT_EMAIL_VERIFICATION='mandatory')
|
@override_settings(ACCOUNT_EMAIL_VERIFICATION='mandatory')
|
||||||
def test_resend_account_verification_email(self):
|
def test_resend_account_verification_email(self):
|
||||||
result = self.post(
|
self.post(
|
||||||
self.register_url,
|
self.register_url,
|
||||||
data=self.REGISTRATION_DATA_WITH_EMAIL,
|
data=self.REGISTRATION_DATA_WITH_EMAIL,
|
||||||
status_code=status.HTTP_201_CREATED
|
status_code=status.HTTP_201_CREATED
|
||||||
|
@ -557,7 +557,7 @@ class APIBasicTests(TestsMixin, TestCase):
|
||||||
|
|
||||||
@override_settings(ACCOUNT_EMAIL_VERIFICATION='mandatory')
|
@override_settings(ACCOUNT_EMAIL_VERIFICATION='mandatory')
|
||||||
def test_resend_already_verified_account_verification_email(self):
|
def test_resend_already_verified_account_verification_email(self):
|
||||||
result = self.post(
|
self.post(
|
||||||
self.register_url,
|
self.register_url,
|
||||||
data=self.REGISTRATION_DATA_WITH_EMAIL,
|
data=self.REGISTRATION_DATA_WITH_EMAIL,
|
||||||
status_code=status.HTTP_201_CREATED
|
status_code=status.HTTP_201_CREATED
|
||||||
|
|
Loading…
Reference in New Issue
Block a user