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

Function test_always_run

tests/commands/run_test.py:427–438  ·  view source on GitHub ↗
(cap_out, store, repo_with_passing_hook)

Source from the content-addressed store, hash-verified

425
426
427def test_always_run(cap_out, store, repo_with_passing_hook):
428 with modify_config() as config:
429 config['repos'][0]['hooks'][0]['always_run'] = True
430 _test_run(
431 cap_out,
432 store,
433 repo_with_passing_hook,
434 {},
435 (b'Bash hook', b'Passed'),
436 0,
437 stage=False,
438 )
439
440
441def test_always_run_alt_config(cap_out, store, repo_with_passing_hook):

Callers

nothing calls this directly

Calls 2

modify_configFunction · 0.90
_test_runFunction · 0.85

Tested by

no test coverage detected