diff --git a/BackEnd/authentication/serializers.py b/BackEnd/authentication/serializers.py index c4580f0e..c0ff0bf5 100644 --- a/BackEnd/authentication/serializers.py +++ b/BackEnd/authentication/serializers.py @@ -111,7 +111,7 @@ class Meta(UserSerializer.Meta): "surname", "profile_id", "is_staff", - "is_superuser" + "is_superuser", ) diff --git a/BackEnd/authentication/tests/test_user_autologout.py b/BackEnd/authentication/tests/test_user_autologout.py index fe2b75c2..4eeb23a4 100644 --- a/BackEnd/authentication/tests/test_user_autologout.py +++ b/BackEnd/authentication/tests/test_user_autologout.py @@ -80,6 +80,7 @@ def test_user_autologout_after_10_days(self): "surname": "Test", "profile_id": AnyInt(), "is_staff": False, + "is_superuser": False, }, response.json(), ) diff --git a/BackEnd/authentication/tests/test_user_self.py b/BackEnd/authentication/tests/test_user_self.py index da4725e3..008ce5a4 100644 --- a/BackEnd/authentication/tests/test_user_self.py +++ b/BackEnd/authentication/tests/test_user_self.py @@ -31,6 +31,7 @@ def test_user_retreive_data_successful(self): "surname": "Test", "profile_id": AnyInt(), "is_staff": False, + "is_superuser": False, }, response.json(), ) @@ -54,6 +55,7 @@ def test_user_update_all_fields_successful(self): "surname": "Ivanenko", "profile_id": AnyInt(), "is_staff": False, + "is_superuser": False, }, ) self.assertEqual(response.status_code, status.HTTP_200_OK) @@ -65,6 +67,7 @@ def test_user_update_all_fields_successful(self): "surname": "Ivanenko", "profile_id": AnyInt(), "is_staff": False, + "is_superuser": False, }, response.json(), ) @@ -86,6 +89,7 @@ def test_user_update_one_field_successful(self): "surname": "Petrenko", "profile_id": AnyInt(), "is_staff": False, + "is_superuser": False, }, response.json(), )