import pytest from httpx import AsyncClient, ASGITransport from src.api.main import app @pytest.mark.asyncio async def test_health_endpoint(): transport = ASGITransport(app=app) async with AsyncClient(transport=transport, base_url="http://test") as client: resp = await client.get("/api/health") assert resp.status_code == 200 data = resp.json() assert data["status"] == "ok"