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

Method test_agent_list

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

handle_agent_toolFunction · 0.90

Tested by

no test coverage detected