MCPcopy Index your code
hub / github.com/commitizen-tools/commitizen / backup_file

Function backup_file

tests/commands/test_commit_command.py:54–58  ·  view source on GitHub ↗

Write backup message so Commit finds it when run from tmp_git_project.

(tmp_git_project, monkeypatch)

Source from the content-addressed store, hash-verified

52
53@pytest.fixture
54def 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")

Callers

nothing calls this directly

Calls 1

get_backup_file_pathFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…