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

Function test_create_symbolic_reference_with_message

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

Source from the content-addressed store, hash-verified

718
719
720def test_create_symbolic_reference_with_message(testrepo: Repository) -> None:
721 sig = Signature('foo', 'bar')
722 testrepo.set_ident('foo', 'bar')
723 msg = 'Hello log'
724 reference = testrepo.create_reference(
725 'HEAD', 'refs/heads/i18n', force=True, message=msg
726 )
727 first = list(reference.log())[0]
728 assert first.message == msg
729 assert first.committer == sig
730
731
732def test_create_invalid_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…