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

Function test_patch_create_blob_delete

test/test_patch.py:231–241  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

229
230
231def test_patch_create_blob_delete(testrepo: Repository) -> None:
232 blob = testrepo[testrepo.create_blob(BLOB_OLD_CONTENT)]
233 assert isinstance(blob, Blob)
234 patch = pygit2.Patch.create_from(
235 blob,
236 None,
237 old_as_path=BLOB_OLD_PATH,
238 new_as_path=BLOB_NEW_PATH,
239 )
240
241 assert patch.text == BLOB_PATCH_DELETED
242
243
244def test_patch_create_blob_add(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…