"""Tests for health check endpoints.""" from fastapi.testclient import TestClient from src.main import create_app class TestHealth: def test_health_check(self): app = create_app() client = TestClient(app) response = client.get("/health") assert response.status_code == 200 data = response.json() assert data["status"] == "healthy" assert "timestamp" in data def test_ready_check(self): app = create_app() client = TestClient(app) response = client.get("/ready") assert response.status_code == 200 data = response.json() assert "database" in data