(
testrepo: Repository, old_content: str, patch_diff: Diff
)
| 97 | |
| 98 | |
| 99 | def test_apply_diff_to_index( |
| 100 | testrepo: Repository, old_content: str, patch_diff: Diff |
| 101 | ) -> None: |
| 102 | # Apply the patch and compare |
| 103 | testrepo.apply(patch_diff, ApplyLocation.INDEX) |
| 104 | |
| 105 | assert read_content(testrepo) == old_content |
| 106 | assert testrepo.status_file('hello.txt') & FileStatus.INDEX_MODIFIED |
| 107 | |
| 108 | |
| 109 | def test_apply_diff_to_both( |
nothing calls this directly
no test coverage detected
searching dependent graphs…