(testrepo: Repository)
| 229 | |
| 230 | |
| 231 | def test_patch_create_blob_delete(testrepo: Repository) -> None: |
| 232 | blob = testrepo[testrepo.create_blob(BLOB_OLD_CONTENT)] |
| 233 | assert isinstance(blob, Blob) |
| 234 | patch = pygit2.Patch.create_from( |
| 235 | blob, |
| 236 | None, |
| 237 | old_as_path=BLOB_OLD_PATH, |
| 238 | new_as_path=BLOB_NEW_PATH, |
| 239 | ) |
| 240 | |
| 241 | assert patch.text == BLOB_PATCH_DELETED |
| 242 | |
| 243 | |
| 244 | def test_patch_create_blob_add(testrepo: Repository) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…