(barerepo: Repository)
| 90 | |
| 91 | |
| 92 | def test_write(barerepo: Repository) -> None: |
| 93 | data = b'hello world' |
| 94 | # invalid object type |
| 95 | with pytest.raises(ValueError): |
| 96 | barerepo.write(ObjectType.ANY, data) |
| 97 | |
| 98 | oid = barerepo.write(ObjectType.BLOB, data) |
| 99 | assert type(oid) is pygit2.Oid |
| 100 | |
| 101 | |
| 102 | def test_contains(barerepo: Repository) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…