mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-12-02 13:53:43 +03:00
Add test of browsable endpoint to maintain coverage
This commit is contained in:
parent
6cdcbfacd2
commit
9e8c98e892
|
@ -466,6 +466,13 @@ class APIBasicTests(TestsMixin, TestCase):
|
|||
new_user = get_user_model().objects.latest('id')
|
||||
self.assertEqual(new_user.username, self.REGISTRATION_DATA['username'])
|
||||
|
||||
# test browsable endpoint
|
||||
result = self.get(
|
||||
self.verify_email_url
|
||||
)
|
||||
self.assertEqual(result.status_code, 405)
|
||||
self.assertEqual(result.json['detail'], 'Method "GET" not allowed.')
|
||||
|
||||
# email is not verified yet
|
||||
payload = {
|
||||
"username": self.USERNAME,
|
||||
|
|
Loading…
Reference in New Issue
Block a user