def test_icon__valid(value):
    actual = config_validation.icon(value)

    assert actual == value
def test_icon__invalid():
    with pytest.raises(Invalid, match="Icons should start with prefix"):
        config_validation.icon("foo")
示例#3
0
def test_icon__invalid():
    with pytest.raises(Invalid, match="Icons must match the format "):
        config_validation.icon("foo")