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

Function test_run_all_hooks_failing

tests/commands/run_test.py:159–173  ·  view source on GitHub ↗
(cap_out, store, repo_with_failing_hook)

Source from the content-addressed store, hash-verified

157
158
159def test_run_all_hooks_failing(cap_out, store, repo_with_failing_hook):
160 _test_run(
161 cap_out,
162 store,
163 repo_with_failing_hook,
164 {},
165 (
166 b'Failing hook',
167 b'Failed',
168 b'hook id: failing_hook',
169 b'Fail\nfoo.py\n',
170 ),
171 expected_ret=1,
172 stage=True,
173 )
174
175
176def test_arbitrary_bytes_hook(cap_out, store, tempdir_factory):

Callers

nothing calls this directly

Calls 1

_test_runFunction · 0.85

Tested by

no test coverage detected