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

Function out_of_date

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

Source from the content-addressed store, hash-verified

32
33@pytest.fixture
34def out_of_date(tempdir_factory):
35 path = make_repo(tempdir_factory, 'python_hooks_repo')
36 original_rev = git.head_rev(path)
37
38 git_commit(cwd=path)
39 head_rev = git.head_rev(path)
40
41 yield auto_namedtuple(
42 path=path, original_rev=original_rev, head_rev=head_rev,
43 )
44
45
46@pytest.fixture

Callers

nothing calls this directly

Calls 3

make_repoFunction · 0.90
git_commitFunction · 0.90
auto_namedtupleFunction · 0.90

Tested by

no test coverage detected