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

Method test_provider_only

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

Source from the content-addressed store, hash-verified

146
147 @patch("mcp_cli.chat.testing.ModelManager")
148 def test_provider_only(self, MockMM):
149 from mcp_cli.chat.testing import TestChatContext
150
151 mm_inst = _make_model_manager()
152 MockMM.return_value = mm_inst
153 sm = _make_stream_manager()
154
155 TestChatContext.create_for_testing(sm, provider="groq")
156 mm_inst.switch_provider.assert_called_once_with("groq")
157 mm_inst.switch_model.assert_not_called()
158
159 @patch("mcp_cli.chat.testing.ModelManager")
160 def test_model_only(self, MockMM):

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