Skip to content

Commit eceb6ba

Browse files
authored
Add health check test for root endpoint
1 parent c9c1588 commit eceb6ba

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

backend/tests/test_health.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from fastapi.testclient import TestClient
2+
from backend.main import app
3+
4+
client = TestClient(app)
5+
6+
def test_health_root():
7+
resp = client.get("/")
8+
assert resp.status_code == 200
9+
assert "status" in resp.json() or resp.text != ""

0 commit comments

Comments
 (0)