"""Tests for health check endpoint.""" import pytest from fastapi.testclient import TestClient from app.main import app @pytest.fixture def client() -> TestClient: """Create a test client for the FastAPI app.""" return TestClient(app) def test_health_check(client: TestClient) -> None: """ Test that the health check endpoint returns a healthy status. This verifies the application is running and can respond to requests. """ response = client.get("/health") assert response.status_code == 200 assert response.json() == {"status": "healthy"}