(temp_git_repo)
| 133 | |
| 134 | |
| 135 | def test_git_diff_file(temp_git_repo): |
| 136 | test_file = os.path.join(temp_git_repo.working_dir, "test.txt") |
| 137 | with open(test_file, "w") as f: |
| 138 | f.write("Initial content") |
| 139 | git_commit_file(temp_git_repo, "test.txt", "Initial commit") |
| 140 | |
| 141 | with open(test_file, "w") as f: |
| 142 | f.write("Modified content") |
| 143 | git_commit_file(temp_git_repo, "test.txt", "Modified commit") |
| 144 | |
| 145 | diff = git_diff_file(temp_git_repo, "test.txt") |
| 146 | assert "Initial content" in diff |
| 147 | assert "Modified content" in diff |
nothing calls this directly
no test coverage detected
searching dependent graphs…