def test_invalid_condition_re(): with pytest.raises(voluptuous.Invalid): rules.PullRequestRuleCondition("head~=(bar")
def test_valid_condition(): c = rules.PullRequestRuleCondition("head~=bar") assert str(c) == "head~=bar"
def test_invalid_condition_re(): with pytest.raises(voluptuous.Invalid): rules.PullRequestRuleCondition("head~=(bar")
def test_valid_condition(): c = rules.PullRequestRuleCondition("head~=bar") assert str(c) == "head~=bar"