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

Function test_modify_tree

test/test_tree.py:168–173  ·  view source on GitHub ↗
(barerepo: Repository)

Source from the content-addressed store, hash-verified

166
167
168def test_modify_tree(barerepo: Repository) -> None:
169 tree = barerepo[TREE_SHA]
170 with pytest.raises(TypeError):
171 operator.setitem('c', tree['a']) # type: ignore
172 with pytest.raises(TypeError):
173 operator.delitem('c') # type: ignore
174
175
176def test_iterate_tree(barerepo: 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…