1
0
Fork 0
forked from sr2/cloud-api

feat: get org response mirrors get user orgs structure

This commit is contained in:
Chris Milne 2026-06-10 09:49:05 +01:00
parent 939abaefe9
commit 3b82025abb
5 changed files with 52 additions and 46 deletions

View file

@ -40,4 +40,4 @@ async def test_get_org_auth_root_su(default_client: AsyncClient, db_session):
resp = await default_client.get("/org?org_id=2")
assert resp.status_code != 422
assert resp.status_code == 200
assert resp.json()["name"] == "Test Org Two"
assert resp.json()["organisations"][0]["name"] == "Test Org Two"