(tool_response: str = _TOOL_RESPONSE)
| 54 | |
| 55 | |
| 56 | def _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 | |
| 69 | def _make_step( |
no outgoing calls
no test coverage detected