(self, mock_opts, mock_theme, mock_restore, runner)
| 930 | @patch("mcp_cli.main.set_theme") |
| 931 | @patch("mcp_cli.main.process_options", return_value=_make_process_options_return()) |
| 932 | def test_chat_basic(self, mock_opts, mock_theme, mock_restore, runner): |
| 933 | from mcp_cli.main import app |
| 934 | |
| 935 | mm = _make_model_manager() |
| 936 | _make_pref_manager() |
| 937 | |
| 938 | with patch("mcp_cli.model_management.ModelManager", return_value=mm): |
| 939 | with patch("asyncio.run") as mock_asyncio: |
| 940 | mock_asyncio.side_effect = lambda coro: coro.close() |
| 941 | runner.invoke(app, ["chat"]) |
| 942 | |
| 943 | @patch("mcp_cli.main.restore_terminal") |
| 944 | @patch("mcp_cli.main.set_theme") |
nothing calls this directly
no test coverage detected