(testrepo: Repository)
| 82 | |
| 83 | |
| 84 | def test_read_blob(testrepo: Repository) -> None: |
| 85 | blob = testrepo[BLOB_SHA] |
| 86 | assert blob.id == BLOB_SHA |
| 87 | assert blob.id == BLOB_SHA |
| 88 | assert isinstance(blob, pygit2.Blob) |
| 89 | assert not blob.is_binary |
| 90 | assert ObjectType.BLOB == blob.type |
| 91 | assert BLOB_CONTENT == blob.data |
| 92 | assert len(BLOB_CONTENT) == blob.size |
| 93 | assert BLOB_CONTENT == blob.read_raw() |
| 94 | |
| 95 | |
| 96 | def test_create_blob(testrepo: Repository) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…