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