mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
feat: add test for main --exit that confirms version_check is called
This commit is contained in:
parent
d4ae735d43
commit
a30a27fa8a
1 changed files with 5 additions and 0 deletions
|
@ -224,6 +224,11 @@ 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()
|
||||
|
||||
@patch("aider.main.InputOutput")
|
||||
@patch("aider.coders.base_coder.Coder.run")
|
||||
def test_main_message_adds_to_input_history(self, mock_run, MockInputOutput):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue