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

Function test_missing_executable

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

Source from the content-addressed store, hash-verified

81
82
83def test_missing_executable(tempdir_factory, store):
84 _test_hook_repo(
85 tempdir_factory, store, 'not_found_exe',
86 'not-found-exe', [os.devnull],
87 b'Executable `i-dont-exist-lol` not found',
88 expected_return_code=1,
89 )
90
91
92def test_run_a_script_hook(tempdir_factory, store):

Callers

nothing calls this directly

Calls 1

_test_hook_repoFunction · 0.85

Tested by

no test coverage detected