Fix tests

This commit is contained in:
Paul Konstantin Gerke 2022-09-05 23:07:56 +02:00
parent 5b13a38f98
commit f8212bfe80
1 changed files with 11 additions and 6 deletions

View File

@ -887,17 +887,22 @@ class TestProfileAPITestCase(APITestCase):
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertDictContainsSubset(
{
"user": 1,
"username": "admin",
"first_name": "",
"last_name": "",
"email": "",
"staff": True,
"language": "en-US",
"timezone": "UTC",
},
response.data,
)
self.assertDictContainsSubset(
{
"id": 1,
"username": "admin",
"first_name": "",
"last_name": "",
"email": "",
"is_staff": True,
},
response.data["user"],
)
# Test that api_key is in the mix and "some long string"
self.assertIn("api_key", response.data)