(repo: Repository)
| 41 | |
| 42 | |
| 43 | def 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'] |
nothing calls this directly
no test coverage detected
searching dependent graphs…