MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / test_install_is_executable

Function test_install_is_executable

tests/test_hooks.py:30–37  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

28
29
30def test_install_is_executable(tmp_path):
31 repo = _make_git_repo(tmp_path)
32 install(repo)
33 hook = repo / ".git" / "hooks" / "post-commit"
34 if os.name == "nt":
35 assert hook.read_text(encoding="utf-8").startswith("#!/bin/sh\n")
36 else:
37 assert hook.stat().st_mode & 0o111 # executable bit set
38
39
40def test_install_idempotent(tmp_path):

Callers

nothing calls this directly

Calls 2

installFunction · 0.90
_make_git_repoFunction · 0.85

Tested by

no test coverage detected