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

Function test_create_blob_fromworkdir_aspath

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

Source from the content-addressed store, hash-verified

133
134
135def test_create_blob_fromworkdir_aspath(testrepo: Repository) -> None:
136 blob_oid = testrepo.create_blob_fromworkdir(Path('bye.txt'))
137 blob = testrepo[blob_oid]
138
139 assert isinstance(blob, pygit2.Blob)
140
141
142def test_create_blob_outside_workdir(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…