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

Method patched_import

tests/chat/test_chat_context.py:1822–1825  ·  view source on GitHub ↗
(name, *args, **kwargs)

Source from the content-addressed store, hash-verified

1820 )
1821
1822 def patched_import(name, *args, **kwargs):
1823 if name == "mcp_cli.memory.store":
1824 raise ImportError("Simulated import failure")
1825 return original_import(name, *args, **kwargs)
1826
1827 monkeypatch.setattr("builtins.__import__", patched_import)
1828

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected