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

Function test_create_blob_fromdisk

test/test_blob.py:147–152  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

145
146
147def test_create_blob_fromdisk(testrepo: Repository) -> None:
148 blob_oid = testrepo.create_blob_fromdisk(__file__)
149 blob = testrepo[blob_oid]
150
151 assert isinstance(blob, pygit2.Blob)
152 assert ObjectType.BLOB == blob.type
153
154
155def test_create_blob_fromiobase(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…