tests: test init
This commit is contained in:
parent
1a81be210a
commit
19145271ae
5 changed files with 78 additions and 4 deletions
11
test/test_healthcheck.py
Normal file
11
test/test_healthcheck.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import pytest
|
||||
from httpx import AsyncClient
|
||||
|
||||
from .conftest import client
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_healthcheck(client: AsyncClient):
|
||||
resp = await client.get("/healthcheck")
|
||||
|
||||
assert resp.status_code == 200
|
||||
assert resp.json() == {"status": "ok"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue