Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix(tests): add _cancel_active_tasks mock to cmd_new test fixtures
chengyongrue15705b4711d
diff --git a/tests/agent/test_unified_session.py b/tests/agent/test_unified_session.pyindex acf0b9d6d..957c8ead2 100644--- a/tests/agent/test_unified_session.py+++ b/tests/agent/test_unified_session.py@@ -241,6 +241,7 @@ class TestCmdNewUnifiedSession:loop = SimpleNamespace(sessions=sessions,consolidator=SimpleNamespace(archive=AsyncMock(return_value=True)),+ _cancel_active_tasks=AsyncMock(return_value=0),)loop._schedule_background = lambda coro: asyncio.ensure_future(coro)@@ -274,6 +275,7 @@ class TestCmdNewUnifiedSession:loop = SimpleNamespace(sessions=sessions,consolidator=SimpleNamespace(archive=AsyncMock(return_value=True)),+ _cancel_active_tasks=AsyncMock(return_value=0),)loop._schedule_background = lambda coro: asyncio.ensure_future(coro)