Write backup message so Commit finds it when run from tmp_git_project.
(tmp_git_project, monkeypatch)
| 52 | |
| 53 | @pytest.fixture |
| 54 | def backup_file(tmp_git_project, monkeypatch): |
| 55 | """Write backup message so Commit finds it when run from tmp_git_project.""" |
| 56 | monkeypatch.chdir(tmp_git_project) |
| 57 | path = get_backup_file_path() |
| 58 | path.write_text("backup commit", encoding="utf-8") |
| 59 | |
| 60 | |
| 61 | @pytest.mark.usefixtures("staging_is_clean", "commit_mock", "prompt_mock_feat") |
nothing calls this directly
no test coverage detected
searching dependent graphs…