MCPcopy
hub / github.com/pre-commit/pre-commit / test_init_repo_no_hooks

Function test_init_repo_no_hooks

tests/git_test.py:291–293  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

289
290
291def test_init_repo_no_hooks(tmpdir):
292 git.init_repo(str(tmpdir), remote='dne')
293 assert not tmpdir.join('.git/hooks').exists()

Callers

nothing calls this directly

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected