minor: rename test client
client -> default_client To allow for different clients. Primarily to allow different overrides for auth testing.
This commit is contained in:
parent
a907506ec1
commit
9d9ca0b907
7 changed files with 140 additions and 140 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import pytest
|
||||
from httpx import AsyncClient
|
||||
|
||||
from .conftest import client
|
||||
from .conftest import default_client
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_healthcheck(client: AsyncClient):
|
||||
resp = await client.get("/healthcheck")
|
||||
async def test_healthcheck(default_client: AsyncClient):
|
||||
resp = await default_client.get("/healthcheck")
|
||||
|
||||
assert resp.status_code == 200
|
||||
assert resp.json() == {"status": "ok"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue