2026-09-04 10:20:40 +08:00

19 lines
430 B
Python

from app.main import app
from fastapi.testclient import TestClient
def test_health_check() -> None:
response = TestClient(app).get("/api/v1/health")
assert response.status_code == 200
assert response.json() == {
"code": 200,
"message": "success",
"data": {
"status": "ok",
"service": "Dieya Risk Prediction Backend",
"version": "0.1.0",
},
}