import pytest from httpx import ASGITransport, AsyncClient from web.main import app @pytest.mark.asyncio async def test_health_returns_ok(): async with AsyncClient(transport=ASGITransport(app=app), base_url="http://test") as client: resp = await client.get("/health") assert resp.status_code == 200 assert resp.json() == {"status": "ok"}