wip
This commit is contained in:
parent
0f911589ca
commit
5bdfe313de
65 changed files with 2219 additions and 77 deletions
0
core/authentication/tests/__init__.py
Normal file
0
core/authentication/tests/__init__.py
Normal file
0
core/authentication/tests/v2/__init__.py
Normal file
0
core/authentication/tests/v2/__init__.py
Normal file
18
core/authentication/tests/v2/test_users.py
Normal file
18
core/authentication/tests/v2/test_users.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
from django.test import TestCase, Client
|
||||
|
||||
from core import settings
|
||||
|
||||
client = Client()
|
||||
|
||||
|
||||
class IssueApiTest(TestCase):
|
||||
|
||||
def test_issues(self):
|
||||
response = client.get('/api/2/users/')
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(len(response.json()), 1)
|
||||
self.assertEqual(response.json()[0]['username'], settings.LEGACY_USER_NAME)
|
||||
self.assertEqual(response.json()[0]['email'], 'mail@' + settings.MAIL_DOMAIN)
|
||||
self.assertEqual(response.json()[0]['first_name'], '')
|
||||
self.assertEqual(response.json()[0]['last_name'], '')
|
||||
self.assertEqual(response.json()[0]['id'], 1)
|
Loading…
Add table
Add a link
Reference in a new issue