(testrepo: Repository)
| 133 | |
| 134 | |
| 135 | def test_patch_create_from_blob_buffer_delete(testrepo: Repository) -> None: |
| 136 | old_blob = testrepo[BLOB_OLD_SHA] |
| 137 | assert isinstance(old_blob, Blob) |
| 138 | |
| 139 | patch = pygit2.Patch.create_from( |
| 140 | old_blob, |
| 141 | None, |
| 142 | old_as_path=BLOB_OLD_PATH, |
| 143 | new_as_path=BLOB_NEW_PATH, |
| 144 | ) |
| 145 | |
| 146 | assert patch.text == BLOB_PATCH_DELETED |
| 147 | |
| 148 | |
| 149 | def test_patch_create_from_bad_old_type_arg(testrepo: Repository) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…