mirror of
https://github.com/correl/openapi-core.git
synced 2024-12-29 11:09:25 +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 warnings
|
||||
import pytest
|
||||
|
||||
from openapi_core.exceptions import InvalidValueType, InvalidValue
|
||||
|
@ -74,14 +73,14 @@ class TestSchemaUnmarshal(object):
|
|||
assert result == int(value)
|
||||
|
||||
def test_integer_enum_invalid(self):
|
||||
schema = Schema('integer', enum=[1,2,3])
|
||||
schema = Schema('integer', enum=[1, 2, 3])
|
||||
value = '123'
|
||||
|
||||
with pytest.raises(InvalidValue):
|
||||
schema.unmarshal(value)
|
||||
|
||||
def test_integer_enum(self):
|
||||
schema = Schema('integer', enum=[1,2,3])
|
||||
schema = Schema('integer', enum=[1, 2, 3])
|
||||
value = '2'
|
||||
|
||||
result = schema.unmarshal(value)
|
||||
|
|
Loading…
Reference in a new issue