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

Function test_merge_message

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

Source from the content-addressed store, hash-verified

339
340
341def test_merge_message(mergerepo: Repository) -> None:
342 assert not mergerepo.message
343 assert not mergerepo.raw_message
344
345 branch_head = pygit2.Oid(hex='1b2bae55ac95a4be3f8983b86cd579226d0eb247')
346 mergerepo.merge(branch_head)
347
348 assert mergerepo.message.startswith(f"Merge commit '{branch_head}'")
349 assert mergerepo.message.encode('utf-8') == mergerepo.raw_message
350
351 mergerepo.state_cleanup()
352 assert not mergerepo.message
353
354
355def test_merge_remove_message(mergerepo: Repository) -> None:

Callers

nothing calls this directly

Calls 2

mergeMethod · 0.80
state_cleanupMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…