mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 23:05:00 +00:00
feat: add GitTemporaryDirectory to test_main_exit_calls_version_check
This commit is contained in:
parent
a30a27fa8a
commit
58f06e1f56
1 changed files with 4 additions and 3 deletions
|
@ -225,9 +225,10 @@ class TestMain(TestCase):
|
|||
main(["--yes", fname, "--encoding", "iso-8859-15"])
|
||||
|
||||
def test_main_exit_calls_version_check(self):
|
||||
with patch("aider.main.check_version") as mock_check_version:
|
||||
main(["--exit"])
|
||||
mock_check_version.assert_called_once()
|
||||
with GitTemporaryDirectory():
|
||||
with patch("aider.main.check_version") as mock_check_version:
|
||||
main(["--exit"])
|
||||
mock_check_version.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