We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b164ec8 commit f281ecdCopy full SHA for f281ecd
1 file changed
tests/test_health.py
@@ -0,0 +1,12 @@
1
+import pytest
2
+from httpx import AsyncClient
3
+
4
+from app.main import app
5
6
7
+@pytest.mark.asyncio
8
+async def test_health_endpoint():
9
+ async with AsyncClient(app=app, base_url="http://test") as ac:
10
+ resp = await ac.get("/health")
11
+ assert resp.status_code == 200
12
+ assert resp.json() == {"status": "ok"}
0 commit comments