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

Function test_run_a_script_hook

tests/repository_test.py:92–96  ·  view source on GitHub ↗
(tempdir_factory, store)

Source from the content-addressed store, hash-verified

90
91
92def test_run_a_script_hook(tempdir_factory, store):
93 _test_hook_repo(
94 tempdir_factory, store, 'script_hooks_repo',
95 'bash_hook', ['bar'], b'bar\nHello World\n',
96 )
97
98
99def test_run_hook_with_spaced_args(tempdir_factory, store):

Callers

nothing calls this directly

Calls 1

_test_hook_repoFunction · 0.85

Tested by

no test coverage detected