AiderRepo -> GitRepo

This commit is contained in:
Paul Gauthier 2023-07-21 16:08:27 -03:00
parent 7c1e3c1b6a
commit 9f8ea93ce6
4 changed files with 12 additions and 26 deletions

View file

@ -38,7 +38,7 @@ class TestMain(TestCase):
main(["foo.txt", "--yes", "--no-git"], input=DummyInput(), output=DummyOutput())
self.assertTrue(os.path.exists("foo.txt"))
@patch("aider.repo.AiderRepo.get_commit_message", return_value="mock commit message")
@patch("aider.repo.GitRepo.get_commit_message", return_value="mock commit message")
def test_main_with_empty_git_dir_new_file(self, _):
make_repo()
main(["--yes", "foo.txt"], input=DummyInput(), output=DummyOutput())