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

Function test_merge_invalid_hex

test/test_merge.py:94–100  ·  view source on GitHub ↗
(mergerepo: Repository)

Source from the content-addressed store, hash-verified

92
93
94def test_merge_invalid_hex(mergerepo: Repository) -> None:
95 branch_head_hex = '12345678'
96 with (
97 pytest.raises(KeyError),
98 pytest.warns(DeprecationWarning, match=r'Pass Commit.+instead'),
99 ):
100 mergerepo.merge(branch_head_hex)
101
102
103def test_merge_already_something_in_index(mergerepo: Repository) -> None:

Callers

nothing calls this directly

Calls 1

mergeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…