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

Function test_meta_hook_passes

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

Source from the content-addressed store, hash-verified

975
976
977def test_meta_hook_passes(cap_out, store, repo_with_passing_hook):
978 add_config_to_repo(repo_with_passing_hook, sample_meta_config())
979
980 _test_run(
981 cap_out,
982 store,
983 repo_with_passing_hook,
984 opts={},
985 expected_outputs=[b'Check for useless excludes'],
986 expected_ret=0,
987 stage=False,
988 )
989
990
991@pytest.fixture

Callers

nothing calls this directly

Calls 3

add_config_to_repoFunction · 0.90
sample_meta_configFunction · 0.90
_test_runFunction · 0.85

Tested by

no test coverage detected