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
|
|
@ -27,7 +27,7 @@ async def test_get_services_success(default_client: AsyncClient):
|
|||
],
|
||||
)
|
||||
@pytest.mark.anyio
|
||||
async def test_get_services_failure(default_client: AsyncClient, query: str, expected_status: int):
|
||||
async def test_get_services_status_checks(default_client: AsyncClient, query: str, expected_status: int):
|
||||
resp = await default_client.get(f"/service/?{query}")
|
||||
|
||||
assert resp.status_code == expected_status
|
||||
|
|
@ -53,7 +53,7 @@ async def test_post_service_success(default_client: AsyncClient):
|
|||
],
|
||||
)
|
||||
@pytest.mark.anyio
|
||||
async def test_post_services_failure(default_client: AsyncClient, body: dict[str, str], expected_status: int):
|
||||
async def test_post_services_status_checks(default_client: AsyncClient, body: dict[str, str], expected_status: int):
|
||||
resp = await default_client.post("/service/", json=body)
|
||||
|
||||
assert resp.status_code == expected_status
|
||||
|
|
@ -81,7 +81,7 @@ async def test_patch_service_success(default_client: AsyncClient):
|
|||
],
|
||||
)
|
||||
@pytest.mark.anyio
|
||||
async def test_patch_services_failure(default_client: AsyncClient, body: dict[str, str], expected_status: int):
|
||||
async def test_patch_services_status_checks(default_client: AsyncClient, body: dict[str, str], expected_status: int):
|
||||
resp = await default_client.patch("/service/key", json=body)
|
||||
|
||||
assert resp.status_code == expected_status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue