(temp_git_repo)
| 105 | |
| 106 | |
| 107 | def test_git_restore_file(temp_git_repo): |
| 108 | test_file = os.path.join(temp_git_repo.working_dir, "test.txt") |
| 109 | with open(test_file, "w") as f: |
| 110 | f.write("Initial content") |
| 111 | git_commit_file(temp_git_repo, "test.txt", "Initial commit") |
| 112 | |
| 113 | with open(test_file, "w") as f: |
| 114 | f.write("Modified content") |
| 115 | |
| 116 | git_restore_file(temp_git_repo, "test.txt") |
| 117 | |
| 118 | with open(test_file, "r") as f: |
| 119 | content = f.read() |
| 120 | assert content == "Initial content" |
| 121 | |
| 122 | |
| 123 | def test_git_create_checkout_branch(temp_git_repo): |
nothing calls this directly
no test coverage detected
searching dependent graphs…