From 87215f9d4153b679c987313857bab0aeefb5c3c1 Mon Sep 17 00:00:00 2001 From: zl-q Date: Thu, 12 Mar 2026 00:19:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(agent):=20=E8=A1=A5=E5=85=85=E4=BC=9A?= =?UTF-8?q?=E8=AF=9D=E4=B8=8A=E4=B8=8B=E6=96=87=E6=9E=84=E5=BB=BA=E5=8D=95?= =?UTF-8?q?=E5=85=83=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tests/unit/core/agentscope/runtime/test_tasks.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/backend/tests/unit/core/agentscope/runtime/test_tasks.py b/backend/tests/unit/core/agentscope/runtime/test_tasks.py index 94d30ca..36d1ac8 100644 --- a/backend/tests/unit/core/agentscope/runtime/test_tasks.py +++ b/backend/tests/unit/core/agentscope/runtime/test_tasks.py @@ -57,6 +57,11 @@ async def test_run_agentscope_task_calls_runtime_run( _fake_get_redis_client, ) monkeypatch.setattr(tasks_module, "AsyncSessionLocal", lambda: _FakeSessionCtx()) + monkeypatch.setattr( + tasks_module, + "_build_recent_context_messages", + lambda **_: [], + ) result = await tasks_module.run_agentscope_task( { @@ -107,6 +112,11 @@ async def test_run_agentscope_task_includes_recent_context_messages( _fake_get_redis_client, ) monkeypatch.setattr(tasks_module, "AsyncSessionLocal", lambda: _FakeSessionCtx()) + monkeypatch.setattr( + tasks_module, + "_build_recent_context_messages", + lambda **_: [], + ) monkeypatch.setattr( tasks_module, "_build_recent_context_messages",