(self)
| 20 | self.GPT35 = Model("gpt-3.5-turbo") |
| 21 | |
| 22 | def test_diffs_empty_repo(self): |
| 23 | with GitTemporaryDirectory(): |
| 24 | repo = git.Repo() |
| 25 | |
| 26 | # Add a change to the index |
| 27 | fname = Path("foo.txt") |
| 28 | fname.write_text("index\n") |
| 29 | repo.git.add(str(fname)) |
| 30 | |
| 31 | # Make a change in the working dir |
| 32 | fname.write_text("workingdir\n") |
| 33 | |
| 34 | git_repo = GitRepo(InputOutput(), None, ".") |
| 35 | diffs = git_repo.get_diffs() |
| 36 | self.assertIn("index", diffs) |
| 37 | self.assertIn("workingdir", diffs) |
| 38 | |
| 39 | def test_diffs_nonempty_repo(self): |
| 40 | with GitTemporaryDirectory(): |
nothing calls this directly
no test coverage detected