test_api.py 239 B

12345678910
  1. from fastapi.testclient import TestClient
  2. from app.main import app
  3. def test_health_endpoint() -> None:
  4. response = TestClient(app).get("/health")
  5. assert response.status_code == 200
  6. assert response.json() == {"status": "ok"}