mirror of
https://github.com/correl/openapi-core.git
synced 2025-01-01 11:03:19 +00:00
formatting fix
This commit is contained in:
parent
b175da37e6
commit
dcedd38772
1 changed files with 2 additions and 3 deletions
|
@ -1,5 +1,4 @@
|
||||||
import mock
|
import mock
|
||||||
import warnings
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from openapi_core.exceptions import InvalidValueType, InvalidValue
|
from openapi_core.exceptions import InvalidValueType, InvalidValue
|
||||||
|
@ -74,14 +73,14 @@ class TestSchemaUnmarshal(object):
|
||||||
assert result == int(value)
|
assert result == int(value)
|
||||||
|
|
||||||
def test_integer_enum_invalid(self):
|
def test_integer_enum_invalid(self):
|
||||||
schema = Schema('integer', enum=[1,2,3])
|
schema = Schema('integer', enum=[1, 2, 3])
|
||||||
value = '123'
|
value = '123'
|
||||||
|
|
||||||
with pytest.raises(InvalidValue):
|
with pytest.raises(InvalidValue):
|
||||||
schema.unmarshal(value)
|
schema.unmarshal(value)
|
||||||
|
|
||||||
def test_integer_enum(self):
|
def test_integer_enum(self):
|
||||||
schema = Schema('integer', enum=[1,2,3])
|
schema = Schema('integer', enum=[1, 2, 3])
|
||||||
value = '2'
|
value = '2'
|
||||||
|
|
||||||
result = schema.unmarshal(value)
|
result = schema.unmarshal(value)
|
||||||
|
|
Loading…
Reference in a new issue