feat(api): Initialize FastAPI app with health check

This commit is contained in:
Yunxiao Xu
2026-02-10 03:25:37 -08:00
parent 60cc401246
commit 60429e1adc
4 changed files with 34 additions and 0 deletions

9
tests/api/test_main.py Normal file
View File

@@ -0,0 +1,9 @@
from fastapi.testclient import TestClient
from ea_chatbot.api.main import app
client = TestClient(app)
def test_health_check():
response = client.get("/health")
assert response.status_code == 200
assert response.json() == {"status": "ok"}