Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronn committed Jan 24, 2020
1 parent a0d41bc commit 75fa745
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from django.urls import reverse
from drfpasswordless.settings import api_settings, DEFAULTS
from drfpasswordless.utils import CallbackToken
import sys

User = get_user_model()

Expand Down Expand Up @@ -70,6 +71,10 @@ 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})
print(verify_token.id, file=sys.stderr)
print(verify_token.user.id, file=sys.stderr)
print(verify_token.is_active, file=sys.stderr)

self.assertEqual(verify_callback_response.status_code, status.HTTP_200_OK)

# Refresh User
Expand Down

0 comments on commit 75fa745

Please sign in to comment.