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

Function test_install_pre_commit

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

Source from the content-addressed store, hash-verified

73
74
75def test_install_pre_commit(in_git_dir, store):
76 assert not install(C.CONFIG_FILE, store, hook_types=['pre-commit'])
77 assert os.access(in_git_dir.join('.git/hooks/pre-commit').strpath, os.X_OK)
78
79 assert not install(C.CONFIG_FILE, store, hook_types=['pre-push'])
80 assert os.access(in_git_dir.join('.git/hooks/pre-push').strpath, os.X_OK)
81
82
83def test_install_hooks_directory_not_present(in_git_dir, store):

Callers

nothing calls this directly

Calls 1

installFunction · 0.90

Tested by

no test coverage detected