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

Function hook_disappearing

tests/commands/autoupdate_test.py:53–60  ·  view source on GitHub ↗
(tempdir_factory)

Source from the content-addressed store, hash-verified

51
52@pytest.fixture
53def hook_disappearing(tempdir_factory):
54 path = make_repo(tempdir_factory, 'python_hooks_repo')
55 original_rev = git.head_rev(path)
56
57 with modify_manifest(path) as manifest:
58 manifest[0]['id'] = 'bar'
59
60 yield auto_namedtuple(path=path, original_rev=original_rev)
61
62
63def test_rev_info_from_config():

Callers

nothing calls this directly

Calls 3

make_repoFunction · 0.90
modify_manifestFunction · 0.90
auto_namedtupleFunction · 0.90

Tested by

no test coverage detected