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

Function test_executor_unknown_server

src/agent/tests/test_runner.py:205–213  ·  view source on GitHub ↗
(mock_llm)

Source from the content-addressed store, hash-verified

203
204@pytest.mark.anyio
205async def test_executor_unknown_server(mock_llm):
206 executor = Executor(mock_llm(""), server_paths={})
207
208 plan = Plan(steps=[_make_step(1)], raw="")
209 with _patch_mcp()[0], _patch_mcp()[1]:
210 results = await executor.execute_plan(plan, "Q")
211
212 assert results[0].success is False
213 assert "iot" in results[0].error
214
215
216@pytest.mark.anyio

Callers

nothing calls this directly

Calls 6

execute_planMethod · 0.95
ExecutorClass · 0.90
PlanClass · 0.90
mock_llmFunction · 0.85
_make_stepFunction · 0.85
_patch_mcpFunction · 0.85

Tested by

no test coverage detected