mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-22 05:14:59 +00:00
fix: Catch SwitchCoder exception in test_cmd_ask
This commit is contained in:
parent
156f11248f
commit
e7c035def4
1 changed files with 7 additions and 6 deletions
|
@ -876,6 +876,7 @@ class TestCommands(TestCase):
|
||||||
with mock.patch("aider.coders.Coder.run") as mock_run:
|
with mock.patch("aider.coders.Coder.run") as mock_run:
|
||||||
mock_run.return_value = canned_reply
|
mock_run.return_value = canned_reply
|
||||||
|
|
||||||
|
with self.assertRaises(SwitchCoder):
|
||||||
commands.cmd_ask(question)
|
commands.cmd_ask(question)
|
||||||
|
|
||||||
mock_run.assert_called_once()
|
mock_run.assert_called_once()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue