新增 SignalScout 首页工作台
This commit is contained in:
@@ -11,3 +11,13 @@ def test_health_endpoint_returns_app_identity() -> None:
|
||||
assert response.status_code == 200
|
||||
assert response.json()["status"] == "ok"
|
||||
assert response.json()["app"] == "SignalScout"
|
||||
|
||||
|
||||
def test_home_page_returns_dashboard_shell() -> None:
|
||||
# 根路径应该展示业务工作台,而不是返回接口404。
|
||||
with TestClient(create_app()) as client:
|
||||
response = client.get("/")
|
||||
|
||||
assert response.status_code == 200
|
||||
assert "SignalScout" in response.text
|
||||
assert "今日 AI 情报" in response.text
|
||||
|
||||
Reference in New Issue
Block a user