(testrepo: Repository)
| 198 | |
| 199 | |
| 200 | def test_diff_blob_create(testrepo: Repository) -> None: |
| 201 | old = testrepo[testrepo.create_blob(BLOB_CONTENT)] |
| 202 | new = testrepo[testrepo.create_blob(BLOB_NEW_CONTENT)] |
| 203 | assert isinstance(old, pygit2.Blob) |
| 204 | assert isinstance(new, pygit2.Blob) |
| 205 | |
| 206 | patch = old.diff(new) |
| 207 | assert patch.text == BLOB_PATCH_2 |
| 208 | |
| 209 | |
| 210 | def test_blob_from_repo(testrepo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…