import httpx from arbitrade.api.app import create_app from arbitrade.config.settings import Settings async def test_health_route_returns_ok() -> None: app = create_app(Settings()) transport = httpx.ASGITransport(app=app) async with httpx.AsyncClient(transport=transport, base_url="http://test") as client: response = await client.get("/health") assert response.status_code == 200 assert response.json()["status"] == "ok"