Flake8 issues solved

This commit is contained in:
Bruno Freitas 2019-05-22 11:15:01 -03:00
parent aab8bf4740
commit ea1150b421
3 changed files with 8 additions and 6 deletions

View File

@ -216,5 +216,6 @@ class RegisterSerializer(serializers.Serializer):
class VerifyEmailSerializer(serializers.Serializer):
key = serializers.CharField()
class ResendVerificationEmailSerializer(serializers.Serializer):
email = serializers.EmailField()

View File

@ -118,6 +118,7 @@ class ResendVerificationEmailView(GenericAPIView):
return Response({'detail': _('Verification e-mail sent.')})
class SocialLoginView(LoginView):
"""
class used for social authentications

View File

@ -521,7 +521,7 @@ class APIBasicTests(TestsMixin, TestCase):
@override_settings(ACCOUNT_EMAIL_VERIFICATION='mandatory')
def test_resend_account_verification_email(self):
result = self.post(
self.post(
self.register_url,
data=self.REGISTRATION_DATA_WITH_EMAIL,
status_code=status.HTTP_201_CREATED
@ -557,7 +557,7 @@ class APIBasicTests(TestsMixin, TestCase):
@override_settings(ACCOUNT_EMAIL_VERIFICATION='mandatory')
def test_resend_already_verified_account_verification_email(self):
result = self.post(
self.post(
self.register_url,
data=self.REGISTRATION_DATA_WITH_EMAIL,
status_code=status.HTTP_201_CREATED