""" tests/test_api_health.py ------------------------ Tests for the /health endpoint and basic app startup. """ import pytest from fastapi.testclient import TestClient from web.app import app client = TestClient(app) def test_health_returns_200(): resp = client.get("/health") assert resp.status_code == 200 def test_health_response_shape(): resp = client.get("/health") data = resp.json() assert data["status"] == "ok" assert "version" in data assert data["version"] == "2.0"