1
0
Fork 0
forked from sr2/cloud-api

feat: deleted owned org endpoint

This commit is contained in:
Chris Milne 2026-06-10 10:15:27 +01:00
parent 3b82025abb
commit bdba903db1
4 changed files with 50 additions and 1 deletions

View file

@ -572,3 +572,13 @@ async def test_delete_org_users_success(db_session, default_client: AsyncClient)
resp = await default_client.delete("/org/user?org_id=1&user_id=2")
assert resp.status_code == 204
@pytest.mark.anyio
async def test_delete_preapproval_org_success(db_session, default_client: AsyncClient):
org_model = db_session.get(Organisation, 1)
org_model.status = "partial"
db_session.flush()
resp = await default_client.delete("/org/self?org_id=1")
assert resp.status_code == 204