MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_agent_stop

Method test_agent_stop

tests/agents/test_tools.py:63–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 1

handle_agent_toolFunction · 0.90

Tested by

no test coverage detected