(
testrepo: Repository, new_content: str, patch_diff: Diff
)
| 107 | |
| 108 | |
| 109 | def test_apply_diff_to_both( |
| 110 | testrepo: Repository, new_content: str, patch_diff: Diff |
| 111 | ) -> None: |
| 112 | # Apply the patch and compare |
| 113 | testrepo.apply(patch_diff, ApplyLocation.BOTH) |
| 114 | |
| 115 | assert read_content(testrepo) == new_content |
| 116 | assert testrepo.status_file('hello.txt') & FileStatus.INDEX_MODIFIED |
| 117 | |
| 118 | |
| 119 | def test_diff_applies_to_workdir( |
nothing calls this directly
no test coverage detected
searching dependent graphs…