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

Method test_cmd_with_all_options

tests/cli/test_main_coverage.py:793–814  ·  view source on GitHub ↗
(self, mock_theme, mock_opts, mock_run, runner)

Source from the content-addressed store, hash-verified

791 @patch("mcp_cli.main.process_options", return_value=_make_process_options_return())
792 @patch("mcp_cli.main.set_theme")
793 def test_cmd_with_all_options(self, mock_theme, mock_opts, mock_run, runner):
794 from mcp_cli.main import app
795
796 mm = _make_model_manager()
797 with patch("mcp_cli.model_management.ModelManager", return_value=mm):
798 runner.invoke(
799 app,
800 [
801 "cmd",
802 "--prompt",
803 "test",
804 "--raw",
805 "--single-turn",
806 "--max-turns",
807 "5",
808 "--provider",
809 "openai",
810 "--model",
811 "gpt-4o",
812 ],
813 )
814 assert mock_run.called
815
816 @patch("mcp_cli.main.run_command_sync")
817 @patch("mcp_cli.main.process_options", return_value=_make_process_options_return())

Callers

nothing calls this directly

Calls 1

_make_model_managerFunction · 0.70

Tested by

no test coverage detected