from fastapi.testclient import TestClient from app.main import create_app def test_health_endpoint_returns_app_identity() -> None: # 健康检查只暴露服务身份,不触发Agent运行或数据库写入。 with TestClient(create_app()) as client: response = client.get("/health") assert response.status_code == 200 assert response.json()["status"] == "ok" assert response.json()["app"] == "SignalScout"