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

Method test_model_only

tests/chat/test_testing.py:160–169  ·  view source on GitHub ↗
(self, MockMM)

Source from the content-addressed store, hash-verified

158
159 @patch("mcp_cli.chat.testing.ModelManager")
160 def test_model_only(self, MockMM):
161 from mcp_cli.chat.testing import TestChatContext
162
163 mm_inst = _make_model_manager()
164 mm_inst.get_active_provider.return_value = "openai"
165 MockMM.return_value = mm_inst
166 sm = _make_stream_manager()
167
168 TestChatContext.create_for_testing(sm, model="gpt-3.5")
169 mm_inst.switch_model.assert_called_once_with("openai", "gpt-3.5")
170
171
172# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 3

_make_stream_managerFunction · 0.85
create_for_testingMethod · 0.80
_make_model_managerFunction · 0.70

Tested by

no test coverage detected