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

Method test_agent_wait

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

Source from the content-addressed store, hash-verified

98
99 @pytest.mark.asyncio
100 async def test_agent_wait(self):
101 mgr = MagicMock()
102 mgr.wait_agent = AsyncMock(
103 return_value={"agent_id": "a1", "status": "completed", "summary": "done"}
104 )
105 result = await handle_agent_tool("agent_wait", {"agent_id": "a1"}, mgr)
106 data = json.loads(result)
107 assert data["status"] == "completed"
108
109 @pytest.mark.asyncio
110 async def test_agent_status(self):

Callers

nothing calls this directly

Calls 1

handle_agent_toolFunction · 0.90

Tested by

no test coverage detected