This commit is contained in:
Paul Gauthier 2023-08-10 16:53:34 -03:00
parent ec91eb670e
commit fed24aa444
3 changed files with 16 additions and 22 deletions

View file

@ -29,7 +29,7 @@ class TestCoder(unittest.TestCase):
io = InputOutput(yes=True)
# Initialize the Coder object with the mocked IO and mocked repo
coder = Coder.create(models.GPT4, None, io, fnames=[str(fname)])
Coder.create(models.GPT4, None, io, fnames=[str(fname)])
self.assertTrue(fname.exists())
@ -40,7 +40,6 @@ class TestCoder(unittest.TestCase):
# Check that the latest commit message is "I added str(fname)"
self.assertEqual(commit_message, f"I added {str(fname)}")
def test_allowed_to_edit(self):
with GitTemporaryDirectory():
repo = git.Repo(Path.cwd())