Lines Matching full:commit
24 'commit, expected',
32 ('not-even-a-valid-commit-format', False),
34 def test_canonicalize_commit(commit: str, expected: bool) -> None:
36 assert canonicalize_commit(commit)
39 assert canonicalize_commit(commit)
46 'commit, expected',
56 ('not-even-a-valid-commit-format', False),
58 def test_validate_branch(commit: str, expected: bool) -> None:
60 assert validate_branch(commit)
63 assert validate_branch(commit)
70 'commit, expected',
80 ('not-even-a-valid-commit-format', False),
82 def test_is_commit_valid(commit: str, expected: bool) -> None:
83 assert is_commit_valid(commit) == expected
87 'branch, commit, expected',
98 def test_branch_has_commit(branch: str, commit: str, expected: bool) -> None:
100 assert branch_has_commit(upstream, branch, commit) == expected
104 'branch, commit, expected',
114 def test_branch_has_backport_of_commit(branch: str, commit: str, expected: bool) -> None:
116 assert branch_has_backport_of_commit(upstream, branch, commit) == expected