Browse Source

Tests check for correctly encoded API key.

pull/166/head
Pēteris Caune 7 years ago
parent
commit
08f6e17e91
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      hc/accounts/tests/test_profile.py

+ 1
- 0
hc/accounts/tests/test_profile.py View File

@ -37,6 +37,7 @@ class ProfileTestCase(BaseTestCase):
self.profile.refresh_from_db()
api_key = self.profile.api_key
self.assertTrue(len(api_key) > 10)
self.assertFalse("b'" in api_key)
def test_it_revokes_api_key(self):
self.client.login(username="[email protected]", password="password")


Loading…
Cancel
Save