(testrepo: Repository)
| 242 | |
| 243 | |
| 244 | def test_patch_create_blob_add(testrepo: Repository) -> None: |
| 245 | blob = testrepo[testrepo.create_blob(BLOB_NEW_CONTENT)] |
| 246 | assert isinstance(blob, Blob) |
| 247 | patch = pygit2.Patch.create_from( |
| 248 | None, |
| 249 | blob, |
| 250 | old_as_path=BLOB_OLD_PATH, |
| 251 | new_as_path=BLOB_NEW_PATH, |
| 252 | ) |
| 253 | |
| 254 | assert patch.text == BLOB_PATCH_ADDED |
| 255 | |
| 256 | |
| 257 | def test_patch_delete_blob(testrepo: Repository) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…