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

Method test_chat_with_comma_models

tests/cli/test_main_coverage.py:1167–1185  ·  view source on GitHub ↗
(self, mock_opts, mock_theme, mock_restore, runner)

Source from the content-addressed store, hash-verified

1165 @patch("mcp_cli.main.set_theme")
1166 @patch("mcp_cli.main.process_options", return_value=_make_process_options_return())
1167 def test_chat_with_comma_models(self, mock_opts, mock_theme, mock_restore, runner):
1168 from mcp_cli.main import app
1169
1170 mm = _make_model_manager()
1171 with patch("mcp_cli.model_management.ModelManager", return_value=mm):
1172 with patch("asyncio.run") as mock_asyncio:
1173 mock_asyncio.side_effect = lambda coro: coro.close()
1174 runner.invoke(
1175 app,
1176 [
1177 "chat",
1178 "--provider",
1179 "custom",
1180 "--api-base",
1181 "http://localhost:8000",
1182 "--model",
1183 "model1,model2,model3",
1184 ],
1185 )
1186
1187
1188# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

_make_model_managerFunction · 0.70
closeMethod · 0.45

Tested by

no test coverage detected