def test_pr_is_automerge(): labels = [ {"name": "CLA signed"}, {"name": util.AUTOMERGE_LABEL}, {"name": "awaiting review"}, ] assert util.pr_is_automerge(labels) is True
def test_pr_is_not_automerge(): labels = [{"name": "awaiting merge"}] assert util.pr_is_automerge(labels) is False