test(backend): 更新后端测试文件

This commit is contained in:
zl-q
2026-03-19 00:52:12 +08:00
parent 522b53c993
commit caf9304064
7 changed files with 48 additions and 438 deletions
+1 -1
View File
@@ -355,7 +355,7 @@ async def test_get_history_snapshot_filters_out_tool_messages() -> None:
"content": "今天共有 3 条日程。",
"metadata": {
"run_id": "run-1",
"worker_agent_output": {
"agent_output": {
"status": "success",
"answer": "今天共有 3 条日程。",
"key_points": [],
+1 -3
View File
@@ -34,9 +34,7 @@ def test_convert_message_to_history_uses_ui_schema_key_for_assistant_message() -
message = _FakeMessage(
role="assistant",
metadata={
"worker_agent_output": {
"ui_schema": {"version": "2.0", "root": {"type": "stack"}}
}
"agent_output": {"ui_schema": {"version": "2.0", "root": {"type": "stack"}}}
},
)