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

Method test_provider_and_model

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

Source from the content-addressed store, hash-verified

135
136 @patch("mcp_cli.chat.testing.ModelManager")
137 def test_provider_and_model(self, MockMM):
138 from mcp_cli.chat.testing import TestChatContext
139
140 mm_inst = _make_model_manager()
141 MockMM.return_value = mm_inst
142 sm = _make_stream_manager()
143
144 TestChatContext.create_for_testing(sm, provider="anthropic", model="claude-3")
145 mm_inst.switch_model.assert_called_once_with("anthropic", "claude-3")
146
147 @patch("mcp_cli.chat.testing.ModelManager")
148 def test_provider_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