mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 11:14:59 +00:00
make sure newly created files don't just get committed
This commit is contained in:
parent
83f084a800
commit
93795c085a
1 changed files with 2 additions and 1 deletions
|
@ -382,8 +382,9 @@ class TestCoder(unittest.TestCase):
|
||||||
|
|
||||||
self.assertTrue(fname.exists())
|
self.assertTrue(fname.exists())
|
||||||
|
|
||||||
|
# make sure it was not committed
|
||||||
with self.assertRaises(git.exc.GitCommandError):
|
with self.assertRaises(git.exc.GitCommandError):
|
||||||
repo.iter_commits(repo.active_branch.name)
|
list(repo.iter_commits(repo.active_branch.name))
|
||||||
|
|
||||||
def mock_send(*args, **kwargs):
|
def mock_send(*args, **kwargs):
|
||||||
coder.partial_response_content = f"""
|
coder.partial_response_content = f"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue