test(backend): unit/integration tests for automation, otp, neo4j, contract

新增自动化审批状态机/执行器/意图路由/会话管理、OTP 绑定流程、neo4j 客户端、响应契约、置信度门禁、环境门控、Tier1 API 等测试。
This commit is contained in:
Simon
2026-07-09 11:49:50 +08:00
parent ead5f83bee
commit 5e53146a9a
18 changed files with 5243 additions and 34 deletions
+2 -2
View File
@@ -937,11 +937,11 @@ class TestFrontendRenderingLogic:
label_map = {
"employee": "员工",
"agent": "",
"ai": "AI助手",
"ai": "Duckula(达寇拉)",
}
assert label_map["employee"] == "员工" or True # 员工消息优先用 sender_name
assert label_map["ai"] == "AI助手"
assert label_map["ai"] == "Duckula(达寇拉)"
def test_unknown_msg_type_fallback_icon(self):
"""验证未知消息类型的兜底图标。"""