mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
feat: Add patch for InputOutput in test_main_exit_calls_version_check
This commit is contained in:
parent
fcf758527a
commit
cef421dfc0
1 changed files with 3 additions and 1 deletions
|
@ -226,9 +226,11 @@ class TestMain(TestCase):
|
|||
|
||||
def test_main_exit_calls_version_check(self):
|
||||
with GitTemporaryDirectory():
|
||||
with patch("aider.main.check_version") as mock_check_version:
|
||||
with patch("aider.main.check_version") as mock_check_version, \
|
||||
patch("aider.main.InputOutput") as mock_input_output:
|
||||
main(["--exit"], input=DummyInput(), output=DummyOutput())
|
||||
mock_check_version.assert_called_once()
|
||||
mock_input_output.assert_called_once()
|
||||
|
||||
@patch("aider.main.InputOutput")
|
||||
@patch("aider.coders.base_coder.Coder.run")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue