test: add unit test suite for config, health checks, and lifespan wiring
This commit is contained in:
11
tests/unit/test_healthz.py
Normal file
11
tests/unit/test_healthz.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import pytest
|
||||
from httpx import AsyncClient
|
||||
|
||||
pytestmark = [pytest.mark.unit, pytest.mark.asyncio]
|
||||
|
||||
|
||||
async def test_healthz_returns_ok_status(client: AsyncClient) -> None:
|
||||
response = await client.get("/healthz")
|
||||
|
||||
assert response.status_code == 200
|
||||
assert response.json() == {"status": "ok"}
|
||||
Reference in New Issue
Block a user