Skip to content

Commit

Permalink
openapi schema validator tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
p1c2u committed Feb 19, 2021
1 parent 2f5321a commit 0144b5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/integration/test_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def test_default_value_wrong_type(self, validator):
assert len(errors_list) == 1
assert errors_list[0].__class__ == OpenAPIValidationError
assert errors_list[0].message == (
"'invaldtype' is not of type 'integer'"
"'invaldtype' is not of type integer"
)

def test_parameter_default_value_wrong_type(self, validator):
Expand Down Expand Up @@ -270,7 +270,7 @@ def test_parameter_default_value_wrong_type(self, validator):
assert len(errors_list) == 1
assert errors_list[0].__class__ == OpenAPIValidationError
assert errors_list[0].message == (
"'invaldtype' is not of type 'integer'"
"'invaldtype' is not of type integer"
)

def test_parameter_default_value_wrong_type_swagger(self,
Expand Down Expand Up @@ -309,7 +309,7 @@ def test_parameter_default_value_wrong_type_swagger(self,
assert len(errors_list) == 1
assert errors_list[0].__class__ == OpenAPIValidationError
assert errors_list[0].message == (
"'invaldtype' is not of type 'integer'"
"'invaldtype' is not of type integer"
)

def test_parameter_default_value_with_reference(self, validator):
Expand All @@ -328,7 +328,7 @@ def test_parameter_default_value_with_reference(self, validator):
'name': 'param1',
'in': 'query',
'schema': {
'allOf':[{
'allOf': [{
'$ref': '#/components/schemas/type',
}],
'default': 1,
Expand Down

0 comments on commit 0144b5b

Please sign in to comment.