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

Function test_executor_get_server_descriptions

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

Source from the content-addressed store, hash-verified

215
216@pytest.mark.anyio
217async def test_executor_get_server_descriptions(mock_llm):
218 executor = Executor(mock_llm(), server_paths={"TestServer": None})
219
220 with patch(
221 "agent.plan_execute.executor._list_tools",
222 new=AsyncMock(
223 return_value=[{"name": "foo", "description": "does foo", "parameters": []}]
224 ),
225 ):
226 descs = await executor.get_server_descriptions()
227
228 assert "TestServer" in descs
229 assert "foo" in descs["TestServer"]
230
231
232@pytest.mark.anyio

Callers

nothing calls this directly

Calls 3

ExecutorClass · 0.90
mock_llmFunction · 0.85

Tested by

no test coverage detected