Improve assign_accessauth test and change already assigned to 409

This commit is contained in:
2026-05-23 18:58:59 +02:00
parent 9e6510f465
commit 6ec3bc5f14
2 changed files with 5 additions and 4 deletions

View File

@@ -75,8 +75,9 @@ def test_assign_already_assigned_access_auth(client, auth_headers, test_group, t
f"/aa/assign/{test_group.id}/{test_aa.id}",
headers=auth_headers
)
# According to the code, this returns 200 with "already assigned" message
assert response.status_code == 200
# According to the code, this returns 409 with "already assigned" message
assert response.status_code == 409
assert "already assigned" in response.json()["detail"].lower()
def test_unassign_access_auth_from_group(client, auth_headers, test_group, test_aa):