1
0
Fork 0
forked from sr2/cloud-api

feat: delete endpoint queries

Delete endpoints do not fully support bodies. Queries used instead.

Tests added.

Resolves #20
This commit is contained in:
Chris Milne 2026-06-09 09:09:41 +01:00
parent e9b272811f
commit c452c6c0d5
13 changed files with 114 additions and 57 deletions

View file

@ -88,3 +88,10 @@ async def test_patch_services_status_checks(
resp = await default_client.patch("/service/key", json=body)
assert resp.status_code == expected_status
@pytest.mark.anyio
async def test_delete_service_success(default_client: AsyncClient):
resp = await default_client.delete("/service/?service_id=1")
assert resp.status_code == 204