From f8212bfe80188f614a1b9da217b27bd79188590b Mon Sep 17 00:00:00 2001 From: Paul Konstantin Gerke Date: Mon, 5 Sep 2022 23:07:56 +0200 Subject: [PATCH] Fix tests --- api/tests.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/api/tests.py b/api/tests.py index 65d60d1a..4dc2a1a4 100644 --- a/api/tests.py +++ b/api/tests.py @@ -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)