(self, mock_theme, mock_opts, mock_run, runner)
| 780 | @patch("mcp_cli.main.process_options", return_value=_make_process_options_return()) |
| 781 | @patch("mcp_cli.main.set_theme") |
| 782 | def test_cmd_basic(self, mock_theme, mock_opts, mock_run, runner): |
| 783 | from mcp_cli.main import app |
| 784 | |
| 785 | mm = _make_model_manager() |
| 786 | with patch("mcp_cli.model_management.ModelManager", return_value=mm): |
| 787 | runner.invoke(app, ["cmd", "--prompt", "hello"]) |
| 788 | assert mock_run.called |
| 789 | |
| 790 | @patch("mcp_cli.main.run_command_sync") |
| 791 | @patch("mcp_cli.main.process_options", return_value=_make_process_options_return()) |
nothing calls this directly
no test coverage detected