(testrepo: Repository)
| 153 | |
| 154 | |
| 155 | def test_create_blob_fromiobase(testrepo: Repository) -> None: |
| 156 | with pytest.raises(TypeError): |
| 157 | testrepo.create_blob_fromiobase('bad type') # type: ignore |
| 158 | |
| 159 | f = io.BytesIO(BLOB_CONTENT) |
| 160 | blob_oid = testrepo.create_blob_fromiobase(f) |
| 161 | blob = testrepo[blob_oid] |
| 162 | |
| 163 | assert isinstance(blob, pygit2.Blob) |
| 164 | assert ObjectType.BLOB == blob.type |
| 165 | |
| 166 | assert blob_oid == blob.id |
| 167 | assert BLOB_SHA == blob_oid |
| 168 | |
| 169 | |
| 170 | def test_diff_blob(testrepo: Repository) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…