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

Method test_no_provider_no_model

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

Source from the content-addressed store, hash-verified

122
123 @patch("mcp_cli.chat.testing.ModelManager")
124 def test_no_provider_no_model(self, MockMM):
125 from mcp_cli.chat.testing import TestChatContext
126
127 mm_inst = _make_model_manager()
128 MockMM.return_value = mm_inst
129 sm = _make_stream_manager()
130
131 ctx = TestChatContext.create_for_testing(sm)
132 assert ctx.stream_manager is sm
133 mm_inst.switch_model.assert_not_called()
134 mm_inst.switch_provider.assert_not_called()
135
136 @patch("mcp_cli.chat.testing.ModelManager")
137 def test_provider_and_model(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