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:
parent
e9b272811f
commit
c452c6c0d5
13 changed files with 114 additions and 57 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue