tests: test init

This commit is contained in:
Chris Milne 2026-05-29 15:18:10 +01:00
parent 1a81be210a
commit 19145271ae
5 changed files with 78 additions and 4 deletions

11
test/test_healthcheck.py Normal file
View 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"}