(self)
| 61 | |
| 62 | @pytest.mark.asyncio |
| 63 | async def test_agent_stop(self): |
| 64 | mgr = MagicMock() |
| 65 | mgr.stop_agent = AsyncMock(return_value=True) |
| 66 | result = await handle_agent_tool("agent_stop", {"agent_id": "a1"}, mgr) |
| 67 | data = json.loads(result) |
| 68 | assert data["success"] is True |
| 69 | mgr.stop_agent.assert_awaited_once_with("a1") |
| 70 | |
| 71 | @pytest.mark.asyncio |
| 72 | async def test_agent_stop_missing_id(self): |
nothing calls this directly
no test coverage detected