(
testrepo: Repository, new_content: str, patch_diff: Diff
)
| 87 | |
| 88 | |
| 89 | def test_apply_diff_to_workdir( |
| 90 | testrepo: Repository, new_content: str, patch_diff: Diff |
| 91 | ) -> None: |
| 92 | # Apply the patch and compare |
| 93 | testrepo.apply(patch_diff, ApplyLocation.WORKDIR) |
| 94 | |
| 95 | assert read_content(testrepo) == new_content |
| 96 | assert testrepo.status_file('hello.txt') == FileStatus.WT_MODIFIED |
| 97 | |
| 98 | |
| 99 | def test_apply_diff_to_index( |
nothing calls this directly
no test coverage detected
searching dependent graphs…