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

Function test_get_trailers_array

test/test_commit_trailer.py:43–54  ·  view source on GitHub ↗
(repo: Repository)

Source from the content-addressed store, hash-verified

41
42
43def test_get_trailers_array(repo: Repository) -> None:
44 commit_hash = '010231b2fdaee6b21da4f06058cf6c6a3392dd12'
45 expected_trailers = {
46 'Bug': '1234',
47 'Signed-off-by': 'Tyler Cipriani <tyler@tylercipriani.com>',
48 }
49 commit = repo.get(commit_hash)
50 assert isinstance(commit, Commit)
51 trailers = commit.message_trailers
52
53 assert trailers['Bug'] == expected_trailers['Bug']
54 assert trailers['Signed-off-by'] == expected_trailers['Signed-off-by']

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…