(testrepo: Repository)
| 216 | |
| 217 | |
| 218 | def test_patch_create_blob_buffer(testrepo: Repository) -> None: |
| 219 | blob = testrepo[testrepo.create_blob(BLOB_OLD_CONTENT)] |
| 220 | assert isinstance(blob, Blob) |
| 221 | patch = pygit2.Patch.create_from( |
| 222 | blob, |
| 223 | BLOB_NEW_CONTENT, |
| 224 | old_as_path=BLOB_OLD_PATH, |
| 225 | new_as_path=BLOB_NEW_PATH, |
| 226 | ) |
| 227 | |
| 228 | assert patch.text == BLOB_PATCH |
| 229 | |
| 230 | |
| 231 | def test_patch_create_blob_delete(testrepo: Repository) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…