Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronn committed Jun 3, 2017
1 parent 36d481e commit f3f7f4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_verification.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from rest_framework import status
from rest_framework.authtoken.models import Token
from rest_framework.test import APITestCase
from rest_framework.test import APITestCase, force_authenticate
from django.contrib.auth import get_user_model
from drfpasswordless.settings import api_settings, DEFAULTS
from drfpasswordless.utils import CallbackToken
Expand Down Expand Up @@ -55,7 +55,7 @@ def test_email_unverified_to_verified_and_back(self):
self.assertEqual(getattr(user, self.email_verified_field_name), False)

# Verify
self.client.force_login(user)
self.client.force_authenticate(user)
verify_response = self.client.post(self.verify_url)
self.assertEqual(verify_response.status_code, status.HTTP_200_OK)

Expand Down Expand Up @@ -130,7 +130,7 @@ def test_mobile_unverified_to_verified_and_back(self):
self.assertEqual(getattr(user, self.mobile_verified_field_name), False)

# Verify
self.client.force_login(user)
self.client.force_authenticate(user)
verify_response = self.client.post(self.verify_url)
self.assertEqual(verify_response.status_code, status.HTTP_200_OK)

Expand Down

0 comments on commit f3f7f4c

Please sign in to comment.