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

Function failing_prepare_commit_msg_repo

tests/conftest.py:147–163  ·  view source on GitHub ↗
(tempdir_factory)

Source from the content-addressed store, hash-verified

145
146@pytest.fixture
147def failing_prepare_commit_msg_repo(tempdir_factory):
148 path = git_dir(tempdir_factory)
149 config = {
150 'repo': 'local',
151 'hooks': [{
152 'id': 'add-signoff',
153 'name': 'Add "Signed off by:"',
154 'entry': 'bash -c "exit 1"',
155 'language': 'system',
156 'stages': ['prepare-commit-msg'],
157 }],
158 }
159 write_config(path, config)
160 with cwd(path):
161 cmd_output('git', 'add', '.')
162 git_commit(msg=failing_prepare_commit_msg_repo.__name__)
163 yield path
164
165
166@pytest.fixture(autouse=True, scope='session')

Callers

nothing calls this directly

Calls 5

git_dirFunction · 0.90
write_configFunction · 0.90
cwdFunction · 0.90
cmd_outputFunction · 0.90
git_commitFunction · 0.90

Tested by

no test coverage detected