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

Method __init__

tests/chat/test_conversation.py:39–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37 """Mock context for testing."""
38
39 def __init__(self):
40 self.conversation_history = []
41 self.openai_tools = []
42 self.tool_name_mapping = {}
43 self.client = MagicMock()
44 self.tool_manager = MagicMock()
45 # Make tool_manager async methods work properly
46 self.tool_manager.get_adapted_tools_for_llm = AsyncMock(return_value=([], {}))
47 self.provider = "openai"
48
49 async def add_assistant_message(self, content):
50 """Add assistant message to conversation history."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected