Cerberus 1.3 renamed 'validator' → 'check_with'

This results in a change in schemas as well as in validator function names.
This commit is contained in:
2019-05-29 12:56:13 +02:00
parent f53217cabf
commit 6f8fd4cd72
4 changed files with 6 additions and 6 deletions

View File

@@ -185,7 +185,7 @@ class AbstractSchemaValidationTest(AbstractValidationTest):
class IPRangeValidatorTest(AbstractSchemaValidationTest):
schema = {'iprange': {'type': 'string', 'required': True, 'validator': 'iprange'}}
schema = {'iprange': {'type': 'string', 'required': True, 'check_with': 'iprange'}}
def test_ipv6(self):
self.assertValid({'iprange': '2a03:b0c0:0:1010::8fe:6ef1'})