This commit is contained in:
Paul Gauthier 2023-07-21 16:00:19 -03:00
parent c4a07f1f84
commit 7c1e3c1b6a

View file

@ -34,9 +34,8 @@ class TestMain(TestCase):
def test_main_with_empty_dir_no_files_on_command(self): def test_main_with_empty_dir_no_files_on_command(self):
main(["--no-git"], input=DummyInput(), output=DummyOutput()) main(["--no-git"], input=DummyInput(), output=DummyOutput())
@patch("aider.repo.AiderRepo.get_commit_message", return_value="commit message!") def test_main_with_empty_dir_new_file(self):
def test_main_with_empty_dir_new_file(self, _): main(["foo.txt", "--yes", "--no-git"], input=DummyInput(), output=DummyOutput())
main(["foo.txt", "--yes","--no-git"], input=DummyInput(), output=DummyOutput())
self.assertTrue(os.path.exists("foo.txt")) self.assertTrue(os.path.exists("foo.txt"))
@patch("aider.repo.AiderRepo.get_commit_message", return_value="mock commit message") @patch("aider.repo.AiderRepo.get_commit_message", return_value="mock commit message")