MCPcopy
hub / github.com/Aider-AI/aider / test_diffs_empty_repo

Method test_diffs_empty_repo

tests/basic/test_repo.py:22–37  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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():

Callers

nothing calls this directly

Calls 5

get_diffsMethod · 0.95
GitRepoClass · 0.90
InputOutputClass · 0.90
write_textMethod · 0.80

Tested by

no test coverage detected