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

Function test_uninstall

tests/commands/install_uninstall_test.py:116–121  ·  view source on GitHub ↗
(in_git_dir, store)

Source from the content-addressed store, hash-verified

114
115
116def test_uninstall(in_git_dir, store):
117 assert not in_git_dir.join('.git/hooks/pre-commit').exists()
118 install(C.CONFIG_FILE, store, hook_types=['pre-commit'])
119 assert in_git_dir.join('.git/hooks/pre-commit').exists()
120 uninstall(C.CONFIG_FILE, hook_types=['pre-commit'])
121 assert not in_git_dir.join('.git/hooks/pre-commit').exists()
122
123
124def _get_commit_output(tempdir_factory, touch_file='foo', **kwargs):

Callers

nothing calls this directly

Calls 3

installFunction · 0.90
uninstallFunction · 0.90
existsMethod · 0.80

Tested by

no test coverage detected