1
0
Fork 0
forked from sr2/cloud-api

minor: renames and error messages

This commit is contained in:
Chris Milne 2026-06-04 14:53:35 +01:00
parent 94cf6c5258
commit c8024daa97
3 changed files with 12 additions and 11 deletions

View file

@ -8,7 +8,7 @@ from .conftest import no_user_client
@pytest.mark.anyio
async def test_get_self_db(no_user_client: AsyncClient):
async def test_get_self_db_auth_user(no_user_client: AsyncClient):
resp = await no_user_client.get("/user/self/db")
assert resp.status_code != 422
assert resp.status_code == 401
@ -16,7 +16,7 @@ async def test_get_self_db(no_user_client: AsyncClient):
@pytest.mark.anyio
async def test_post_org_success(no_user_client: AsyncClient):
async def test_post_org_success_auth_user(no_user_client: AsyncClient):
resp = await no_user_client.post("/org", json={"name": "New Test Org"})
assert resp.status_code != 422
assert resp.status_code == 401