Regression test for #322.
(tempdir_factory, store)
| 201 | |
| 202 | |
| 203 | def test_commit_am(tempdir_factory, store): |
| 204 | """Regression test for #322.""" |
| 205 | path = make_consuming_repo(tempdir_factory, 'script_hooks_repo') |
| 206 | with cwd(path): |
| 207 | # Make an unstaged change |
| 208 | open('unstaged', 'w').close() |
| 209 | cmd_output('git', 'add', '.') |
| 210 | git_commit(cwd=path) |
| 211 | with open('unstaged', 'w') as foo_file: |
| 212 | foo_file.write('Oh hai') |
| 213 | |
| 214 | assert install(C.CONFIG_FILE, store, hook_types=['pre-commit']) == 0 |
| 215 | |
| 216 | ret, output = _get_commit_output(tempdir_factory) |
| 217 | assert ret == 0 |
| 218 | |
| 219 | |
| 220 | def test_unicode_merge_commit_message(tempdir_factory, store): |
nothing calls this directly
no test coverage detected