test: add unit test suite for config, health checks, and lifespan wiring

This commit is contained in:
2026-08-16 11:54:14 +03:30
parent 3c660de093
commit d71dd1bd0c
19 changed files with 118 additions and 0 deletions

17
tests/unit/test_readyz.py Normal file
View File

@@ -0,0 +1,17 @@
import pytest
from httpx import AsyncClient
pytestmark = [pytest.mark.unit, pytest.mark.asyncio]
async def test_readyz_reports_all_dependencies_not_ready_without_docker(
client: AsyncClient,
) -> None:
response = await client.get("/readyz")
assert response.status_code == 503
assert response.json() == {
"postgres": False,
"minio": False,
"qdrant": False,
}