We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b175da3 commit dcedd38Copy full SHA for dcedd38
tests/unit/test_schemas.py
@@ -1,5 +1,4 @@
1
import mock
2
-import warnings
3
import pytest
4
5
from openapi_core.exceptions import InvalidValueType, InvalidValue
@@ -74,14 +73,14 @@ def test_integer_valid(self):
74
73
assert result == int(value)
75
76
def test_integer_enum_invalid(self):
77
- schema = Schema('integer', enum=[1,2,3])
+ schema = Schema('integer', enum=[1, 2, 3])
78
value = '123'
79
80
with pytest.raises(InvalidValue):
81
schema.unmarshal(value)
82
83
def test_integer_enum(self):
84
85
value = '2'
86
87
result = schema.unmarshal(value)
0 commit comments