"""/readyz responds 200 when the (SQLite in tests) DB is reachable.""" from __future__ import annotations from fastapi.testclient import TestClient def test_readyz_returns_ok_when_db_reachable(client: TestClient) -> None: r = client.get("/readyz") assert r.status_code == 200 assert r.json() == {"status": "ok"}