(self, mock_theme, mock_opts, mock_run, runner)
| 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()) |
nothing calls this directly
no test coverage detected