(tempdir_factory)
| 145 | |
| 146 | @pytest.fixture |
| 147 | def 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') |
nothing calls this directly
no test coverage detected