Exemple #1
0
 class TestVlad(Vlad):
     validators = {
         'Column A': [EmptyValidator()],
         'Column B': [EmptyValidator()]
     }
Exemple #2
0
 class TestVlad(Vlad):
     validators = {'Foo': [EmptyValidator()]}
Exemple #3
0
def test_empty_validator_fails():
    validator = EmptyValidator()
    with pytest.raises(ValidationException):
        validator.validate("foo")

    assert validator.bad == {"foo"}
Exemple #4
0
def test_empty_validator_works():
    EmptyValidator().validate("")
Exemple #5
0
 class TestVlad(Vlad):
     validators = {"Foo": [EmptyValidator()]}
Exemple #6
0
 class TestVlad(Vlad):
     validators = {
         "Column A": [EmptyValidator()],
         "Column B": [EmptyValidator()]
     }