Tests: Support jsonschema 4.21
This fixes unit test compatibility with jsonschema 4.21 while maintaining compat with jsonschema 3.2. Change-Id: If9b8b4ccc805c8086c180e881b0ddd712289ad13
This commit is contained in:
parent
7245ec027b
commit
105728c2ab
@ -303,8 +303,10 @@ class StringLengthTestCase(APIValidationTestCase):
|
||||
req=FakeRequest()))
|
||||
|
||||
def test_validate_string_length_fails(self):
|
||||
# checks for jsonschema output from 3.2.x and 4.21.x
|
||||
detail = ("Invalid input for field/attribute foo. Value: ."
|
||||
" '' is too short")
|
||||
" '' "
|
||||
"(is too short|should be non-empty)")
|
||||
self.check_validation_error(self.post, body={'foo': ''},
|
||||
expected_detail=detail)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user