Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronn committed Jan 24, 2020
1 parent d25d8a3 commit e44dcef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drfpasswordless/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def validate(self, attrs):
logger.debug("drfpasswordless: User token mismatch when verifying alias.")

except CallbackToken.DoesNotExist:
msg = _('We could not verify this alias.')
msg = _('We could not verify this token.')
logger.debug("drfpasswordless: Tried to validate alias with bad token.")
pass
except User.DoesNotExist:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_email_unverified_to_verified_and_back(self):
verify_token = CallbackToken.objects.filter(user=user, is_active=True).first()
self.assertNotEqual(verify_token, None)
verify_callback_response = self.client.post(self.callback_verify, {'email': email2, 'token': verify_token.key})
self.assertEqual(verify_callback_response, status.HTTP_200_OK)
self.assertEqual(verify_callback_response.status_code, status.HTTP_200_OK)

# Refresh User
user = User.objects.get(**{self.email_field_name: email2})
Expand Down

0 comments on commit e44dcef

Please sign in to comment.