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:
@@ -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'})
|
||||
|
Reference in New Issue
Block a user