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

Function test_create_reference_with_message

test/test_refs.py:687–696  ·  view source on GitHub ↗
(testrepo: Repository)

Source from the content-addressed store, hash-verified

685
686
687def test_create_reference_with_message(testrepo: Repository) -> None:
688 sig = Signature('foo', 'bar')
689 testrepo.set_ident('foo', 'bar')
690 msg = 'Hello log'
691 reference = testrepo.create_reference(
692 'refs/heads/feature', LAST_COMMIT, message=msg
693 )
694 first = list(reference.log())[0]
695 assert first.message == msg
696 assert first.committer == sig
697
698
699def test_create_symbolic_reference(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls 2

set_identMethod · 0.80
create_referenceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…