Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Maffooch committed Sep 20, 2024
1 parent cb36018 commit 7e23656
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion unittests/test_rest_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -1709,7 +1709,9 @@ def test_create(self):
self.assertEqual(self.endpoint_model.objects.count(), length + 1)

def test_create_user_with_non_configuration_permissions(self):
payload = self.payload.copy()
payload = self.payload.copy() | {
"password": "testTEST1234!@#$",
}
payload["configuration_permissions"] = [25, 26] # these permissions exist but user can not assign them becaause they are not "configuration_permissions"
response = self.client.post(self.url, payload)
self.assertEqual(response.status_code, 400)
Expand Down

0 comments on commit 7e23656

Please sign in to comment.