import os os.environ["DATABASE_URL"] = "sqlite+aiosqlite:///:memory:" os.environ["ENVIRONMENT"] = "test" from app.main import app from fastapi.testclient import TestClient def test_health_endpoint(): with TestClient(app) as client: response = client.get("/health") assert response.status_code == 200 assert response.json()["status"] == "ok"