auto-sync: 2026-05-17 06:01:12
This commit is contained in:
@@ -134,7 +134,7 @@ class TestDispatch:
|
||||
result = asyncio.run(dispatcher.dispatch(task_pending))
|
||||
assert result["status"] == "dispatched"
|
||||
assert result["session_id"] == "session-123"
|
||||
assert result["level"] == "full_agent"
|
||||
assert result["level"] == "full"
|
||||
|
||||
def test_dispatch_no_spawner_returns_error(self, dispatcher, task_pending):
|
||||
"""无 spawner → error"""
|
||||
@@ -150,7 +150,7 @@ class TestDispatch:
|
||||
|
||||
result = asyncio.run(dispatcher.dispatch(task_no_assignee))
|
||||
assert result["status"] == "dispatched"
|
||||
assert result["level"] == "sub_agent"
|
||||
assert result["level"] == "sub"
|
||||
|
||||
def test_dispatch_escalate(self, dispatcher, task_unknown_agent):
|
||||
"""升级调度"""
|
||||
|
||||
Reference in New Issue
Block a user