Test web email confirm

This commit is contained in:
Виктор Гладких 2019-09-24 09:23:57 +03:00
parent afce9493e9
commit 7f630e9e94

View File

@ -68,7 +68,7 @@ class AccountChangePasswordTests(APITestCase):
class AccountChangePasswordTests(APITestCase):
# "/web/account/email/confirm/{uidb64}/{token}/"
url = "/web/account/email/confirm/"
url = "/api/web/account/email/confirm/"
def setUp(self):
self.data = get_tokens_for_user()
@ -78,3 +78,5 @@ class AccountChangePasswordTests(APITestCase):
token = user.confirm_email_token
uid64 = user.get_user_uidb64
url = path.join(self.url, uid64, token, "")
response = self.client.get(url)
self.assertEqual(response.status_code, status.HTTP_200_OK)