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

Method test_setup_git

tests/basic/test_main.py:117–127  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

115 main(["--yes", str(fname), "--exit"], input=DummyInput(), output=DummyOutput())
116
117 def test_setup_git(self):
118 io = InputOutput(pretty=False, yes=True)
119 git_root = setup_git(None, io)
120 git_root = Path(git_root).resolve()
121 self.assertEqual(git_root, Path(self.tempdir).resolve())
122
123 self.assertTrue(git.Repo(self.tempdir))
124
125 gitignore = Path.cwd() / ".gitignore"
126 self.assertTrue(gitignore.exists())
127 self.assertEqual(".aider*", gitignore.read_text().splitlines()[0])
128
129 def test_check_gitignore(self):
130 with GitTemporaryDirectory():

Callers

nothing calls this directly

Calls 3

InputOutputClass · 0.90
setup_gitFunction · 0.90
read_textMethod · 0.45

Tested by

no test coverage detected