configtypes: Add invalid URL for TestUrlList.

This commit is contained in:
Florian Bruhin 2015-07-23 23:25:56 +02:00
parent 71188bb67b
commit 8f48247b8f

View File

@ -1580,6 +1580,7 @@ class TestUrlList:
@pytest.mark.parametrize('val', [ @pytest.mark.parametrize('val', [
'', '',
'foo,,bar', 'foo,,bar',
'+', # invalid URL with QUrl.fromUserInput
]) ])
def test_validate_invalid(self, klass, val): def test_validate_invalid(self, klass, val):
with pytest.raises(configexc.ValidationError): with pytest.raises(configexc.ValidationError):