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

Function test_autoupdate_local_hooks

tests/commands/autoupdate_test.py:449–455  ·  view source on GitHub ↗
(in_git_dir)

Source from the content-addressed store, hash-verified

447
448
449def test_autoupdate_local_hooks(in_git_dir):
450 config = sample_local_config()
451 add_config_to_repo('.', config)
452 assert autoupdate(C.CONFIG_FILE, freeze=False, tags_only=False) == 0
453 new_config_written = read_config('.')
454 assert len(new_config_written['repos']) == 1
455 assert new_config_written['repos'][0] == config
456
457
458def test_autoupdate_local_hooks_with_out_of_date_repo(

Callers

nothing calls this directly

Calls 4

sample_local_configFunction · 0.90
add_config_to_repoFunction · 0.90
autoupdateFunction · 0.90
read_configFunction · 0.90

Tested by

no test coverage detected