MCPcopy
hub / github.com/IBM/AssetOpsBench / _patch_mcp

Function _patch_mcp

src/agent/tests/test_runner.py:56–66  ·  view source on GitHub ↗
(tool_response: str = _TOOL_RESPONSE)

Source from the content-addressed store, hash-verified

54
55
56def _patch_mcp(tool_response: str = _TOOL_RESPONSE):
57 return (
58 patch(
59 "agent.plan_execute.executor._list_tools",
60 new=AsyncMock(return_value=_MOCK_TOOLS),
61 ),
62 patch(
63 "agent.plan_execute.executor._call_tool",
64 new=AsyncMock(return_value=tool_response),
65 ),
66 )
67
68
69def _make_step(

Calls

no outgoing calls

Tested by

no test coverage detected