(self)
| 128 | |
| 129 | @pytest.mark.asyncio |
| 130 | async def test_agent_list(self): |
| 131 | mgr = MagicMock() |
| 132 | mgr.list_agents.return_value = [ |
| 133 | {"agent_id": "a", "status": "active"}, |
| 134 | {"agent_id": "b", "status": "completed"}, |
| 135 | ] |
| 136 | result = await handle_agent_tool("agent_list", {}, mgr) |
| 137 | data = json.loads(result) |
| 138 | assert len(data["agents"]) == 2 |
| 139 | |
| 140 | @pytest.mark.asyncio |
| 141 | async def test_agent_spawn(self): |
nothing calls this directly
no test coverage detected