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

Function test_write_tree_to

test/test_index.py:247–252  ·  view source on GitHub ↗
(testrepo: Repository, tmp_path: Path)

Source from the content-addressed store, hash-verified

245
246
247def test_write_tree_to(testrepo: Repository, tmp_path: Path) -> None:
248 pygit2.option(pygit2.enums.Option.ENABLE_STRICT_OBJECT_CREATION, False)
249 with utils.TemporaryRepository('emptyrepo.zip', tmp_path) as path:
250 nrepo = Repository(path)
251 id = testrepo.index.write_tree(nrepo)
252 assert nrepo[id] is not None
253
254
255def test_create_entry(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 2

RepositoryClass · 0.90
write_treeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…