minor: renames and error messages
This commit is contained in:
parent
94cf6c5258
commit
c8024daa97
3 changed files with 12 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue