feat: all unique constraints tested

This commit is contained in:
Chris Milne 2026-06-08 16:05:20 +01:00
parent 52990aae13
commit e9b272811f
7 changed files with 28 additions and 11 deletions

View file

@ -549,6 +549,10 @@ async def test_post_perm_success(default_client: AsyncClient, db_session):
@pytest.mark.parametrize(
"body, expected_status",
[
(
{"service_id": 1, "resource": "test_resource", "action": "read"},
409,
),
# service_id tests
(
{"service_id": 42, "resource": "test_resource", "action": "read"},