import pytest from httpx import AsyncClient @pytest.mark.usefixtures("db") async def test_resources_live_under_api_prefix(client: AsyncClient) -> None: # The ingress forwards /api/* unchanged, so the app itself must serve that prefix. assert (await client.get("/api/cases")).status_code == 200 assert (await client.get("/cases")).status_code == 404 async def test_health_stays_at_root_for_probes(client: AsyncClient) -> None: assert (await client.get("/health")).status_code == 200