class TestVlad(Vlad): validators = { 'Column A': [EmptyValidator()], 'Column B': [EmptyValidator()] }
class TestVlad(Vlad): validators = {'Foo': [EmptyValidator()]}
def test_empty_validator_fails(): validator = EmptyValidator() with pytest.raises(ValidationException): validator.validate("foo") assert validator.bad == {"foo"}
def test_empty_validator_works(): EmptyValidator().validate("")
class TestVlad(Vlad): validators = {"Foo": [EmptyValidator()]}
class TestVlad(Vlad): validators = { "Column A": [EmptyValidator()], "Column B": [EmptyValidator()] }