(root: Path)
| 35 | |
| 36 | |
| 37 | def _init_repo(root: Path) -> None: |
| 38 | _git(["init", "--initial-branch=master"], root) |
| 39 | _git(["config", "user.email", "test@example.com"], root) |
| 40 | _git(["config", "user.name", "Test"], root) |
| 41 | (root / "README.md").write_text("hi\n") |
| 42 | _git(["add", "README.md"], root) |
| 43 | _git(["commit", "-m", "init"], root) |
| 44 | |
| 45 | |
| 46 | class TestClassifyWorktree(unittest.TestCase): |
no test coverage detected