Test web email confirm
This commit is contained in:
parent
afce9493e9
commit
7f630e9e94
|
|
@ -68,7 +68,7 @@ class AccountChangePasswordTests(APITestCase):
|
||||||
|
|
||||||
class AccountChangePasswordTests(APITestCase):
|
class AccountChangePasswordTests(APITestCase):
|
||||||
# "/web/account/email/confirm/{uidb64}/{token}/"
|
# "/web/account/email/confirm/{uidb64}/{token}/"
|
||||||
url = "/web/account/email/confirm/"
|
url = "/api/web/account/email/confirm/"
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.data = get_tokens_for_user()
|
self.data = get_tokens_for_user()
|
||||||
|
|
@ -78,3 +78,5 @@ class AccountChangePasswordTests(APITestCase):
|
||||||
token = user.confirm_email_token
|
token = user.confirm_email_token
|
||||||
uid64 = user.get_user_uidb64
|
uid64 = user.get_user_uidb64
|
||||||
url = path.join(self.url, uid64, token, "")
|
url = path.join(self.url, uid64, token, "")
|
||||||
|
response = self.client.get(url)
|
||||||
|
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
||||||
Loading…
Reference in New Issue
Block a user