tests: test against health check endpoint
Some checks failed
ci / lint_and_test (push) Failing after 8s
Some checks failed
ci / lint_and_test (push) Failing after 8s
This commit is contained in:
parent
6fb841516c
commit
fc10307cc2
1 changed files with 10 additions and 0 deletions
10
tests/test_healthcheck.py
Normal file
10
tests/test_healthcheck.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import pytest
|
||||
from httpx import AsyncClient
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
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