(self)
| 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(): |
nothing calls this directly
no test coverage detected