MCPcopy
hub / github.com/Aider-AI/aider / mock_run

Method mock_run

tests/basic/test_commands.py:2117–2120  ·  view source on GitHub ↗
(cmd)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

SwitchCoderClass · 0.90

Tested by

no test coverage detected