重写为 AI 情报 Agent 并接入 Jenkins 流水线
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user