MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / test_cwd_of_hook

Function test_cwd_of_hook

tests/repository_test.py:151–156  ·  view source on GitHub ↗
(in_git_dir, tempdir_factory, store)

Source from the content-addressed store, hash-verified

149
150
151def test_cwd_of_hook(in_git_dir, tempdir_factory, store):
152 # Note: this doubles as a test for `system` hooks
153 _test_hook_repo(
154 tempdir_factory, store, 'prints_cwd_repo',
155 'prints_cwd', ['-L'], _norm_pwd(in_git_dir.strpath) + b'\n',
156 )
157
158
159def test_lots_of_files(tempdir_factory, store):

Callers

nothing calls this directly

Calls 2

_test_hook_repoFunction · 0.85
_norm_pwdFunction · 0.85

Tested by

no test coverage detected