(tempdir_factory)
| 72 | |
| 73 | @pytest.fixture |
| 74 | def in_merge_conflict(tempdir_factory): |
| 75 | path = make_consuming_repo(tempdir_factory, 'script_hooks_repo') |
| 76 | open(os.path.join(path, 'placeholder'), 'a').close() |
| 77 | cmd_output('git', 'add', 'placeholder', cwd=path) |
| 78 | git_commit(msg=in_merge_conflict.__name__, cwd=path) |
| 79 | |
| 80 | conflict_path = tempdir_factory.get() |
| 81 | cmd_output('git', 'clone', path, conflict_path) |
| 82 | with cwd(conflict_path): |
| 83 | _make_conflict() |
| 84 | yield os.path.join(conflict_path) |
| 85 | |
| 86 | |
| 87 | @pytest.fixture |
nothing calls this directly
no test coverage detected