diff --git a/tests/test_dispatcher.py b/tests/test_dispatcher.py index 4cd8734..cca39d3 100644 --- a/tests/test_dispatcher.py +++ b/tests/test_dispatcher.py @@ -144,14 +144,15 @@ class TestDispatch: assert "No spawner" in result["reason"] def test_dispatch_subagent(self, dispatcher, task_no_assignee): - """Subagent 调度""" + """无 assignee → 能力映射 fallback 庞统(Full Agent)""" mock_spawner = MagicMock() - mock_spawner.spawn_subagent = AsyncMock(return_value="sub-123") + mock_spawner.spawn_full_agent = AsyncMock(return_value="auto-123") dispatcher.spawner = mock_spawner result = asyncio.run(dispatcher.dispatch(task_no_assignee)) assert result["status"] == "dispatched" - assert result["level"] == "sub" + assert result["level"] == "full" + assert result["agent_id"] == "pangtong-fujunshi" def test_dispatch_escalate(self, dispatcher, task_unknown_agent): """升级调度"""