JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix(tests): update _fake_monitor mock to accept hide_dm parameter
zhanglongminbd6934f2f7f1
diff --git a/tests/unit_tests/agentserver/test_team_helpers.py b/tests/unit_tests/agentserver/test_team_helpers.pyindex a1dcd09edb..615691dc9e 100644--- a/tests/unit_tests/agentserver/test_team_helpers.py+++ b/tests/unit_tests/agentserver/test_team_helpers.py@@ -612,7 +612,12 @@ async def test_consume_stream_with_query_launches_watcher_after_runtime_ready(molambda **kwargs: calls.append(f"sync:{kwargs['session_id']}:{kwargs['ready_team_name']}"),)- async def _fake_monitor(channel_id, session_id, team_name):+ async def _fake_monitor(+ channel_id: str | None,+ session_id: str,+ team_name: str,+ hide_dm: bool = False,+ ) -> None:calls.append(f"monitor:{session_id}:{team_name}")monkeypatch.setattr(team_helpers, "ensure_monitor_for_active_runtime", _fake_monitor)