def test_converter_name(self):
     assert get_validator_or_converter('remove_whitespace')
 def test_validator_name(self):
     assert get_validator_or_converter('not_empty')
示例#3
0
 def test_converter_name(self):
     assert get_validator_or_converter('remove_whitespace')
示例#4
0
 def test_validator_name(self):
     assert get_validator_or_converter('not_empty')
 def test_converter_name(self):
     assert get_validator_or_converter('date_to_db')
 def test_missing(self):
     with pytest.raises(SchemingException):
         get_validator_or_converter("not_a_real_validator_name")