mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25: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,6 +225,7 @@ class TestMain(TestCase):
|
||||||
main(["--yes", fname, "--encoding", "iso-8859-15"])
|
main(["--yes", fname, "--encoding", "iso-8859-15"])
|
||||||
|
|
||||||
def test_main_exit_calls_version_check(self):
|
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:
|
||||||
main(["--exit"])
|
main(["--exit"])
|
||||||
mock_check_version.assert_called_once()
|
mock_check_version.assert_called_once()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue