forked from sr2/cloud-api
tests/minor: rename test functions
`_failure` in name wasn't necessarily an accurate descriptor for parameterized testing with expected statuses. `_status_checks` used instead.
This commit is contained in:
parent
f600664789
commit
b8b39188f6
4 changed files with 24 additions and 25 deletions
|
|
@ -9,7 +9,7 @@ from httpx import AsyncClient
|
|||
from .conftest import default_client
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_get_self_db(default_client: AsyncClient):
|
||||
async def test_get_self_db_success(default_client: AsyncClient):
|
||||
resp = await default_client.get("/user/self/db")
|
||||
data = resp.json()
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ async def test_get_user_success(default_client: AsyncClient):
|
|||
("", 422),
|
||||
],
|
||||
)
|
||||
async def test_get_user_fail(default_client: AsyncClient, query: str, expected_status: int):
|
||||
async def test_get_user_status_checks(default_client: AsyncClient, query: str, expected_status: int):
|
||||
resp = await default_client.get(f"/user/?{query}")
|
||||
|
||||
assert resp.status_code == expected_status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue