(tmp_path)
| 28 | |
| 29 | |
| 30 | def test_install_is_executable(tmp_path): |
| 31 | repo = _make_git_repo(tmp_path) |
| 32 | install(repo) |
| 33 | hook = repo / ".git" / "hooks" / "post-commit" |
| 34 | if os.name == "nt": |
| 35 | assert hook.read_text(encoding="utf-8").startswith("#!/bin/sh\n") |
| 36 | else: |
| 37 | assert hook.stat().st_mode & 0o111 # executable bit set |
| 38 | |
| 39 | |
| 40 | def test_install_idempotent(tmp_path): |
nothing calls this directly
no test coverage detected