feat: deleted owned org endpoint
All checks were successful
ci / lint_and_test (push) Successful in 14s
All checks were successful
ci / lint_and_test (push) Successful in 14s
This commit is contained in:
parent
3b82025abb
commit
bdba903db1
4 changed files with 50 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue