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

Function cache_manager

tests/tools/test_tool_index.py:233–237  ·  view source on GitHub ↗

ToolManager with mocked get_all_tools for cache testing.

()

Source from the content-addressed store, hash-verified

231
232@pytest.fixture
233def cache_manager():
234 """ToolManager with mocked get_all_tools for cache testing."""
235 tm = ToolManager(config_file="dummy.json", servers=[])
236 tm.get_all_tools = AsyncMock(return_value=_make_tools())
237 return tm
238
239
240@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

ToolManagerClass · 0.90
_make_toolsFunction · 0.85

Tested by

no test coverage detected