(cmd)
| 2115 | |
| 2116 | # Mock run to raise SwitchCoder for /ask and /model |
| 2117 | def mock_run(cmd): |
| 2118 | if cmd.startswith(("/ask", "/model")): |
| 2119 | raise SwitchCoder() |
| 2120 | return None |
| 2121 | |
| 2122 | with mock.patch.object(commands, "run", side_effect=mock_run): |
| 2123 | # Capture tool_error output |
nothing calls this directly
no test coverage detected