MCPcopy Create free account
hub / github.com/libgit2/pygit2 / test_write

Function test_write

test/test_odb.py:104–111  ·  view source on GitHub ↗
(odb: Odb)

Source from the content-addressed store, hash-verified

102
103
104def test_write(odb: Odb) -> None:
105 data = b'hello world'
106 # invalid object type
107 with pytest.raises(ValueError):
108 odb.write(ObjectType.ANY, data)
109
110 oid = odb.write(ObjectType.BLOB, data)
111 assert type(oid) is Oid

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…