forked from loafle/openapi-generator-original
fix: python clients (#136)
* fix: python client * fix: regenerate petstore samples for python-asyncio/tornado * fix: python-asyncio tests * fix: python-tornado tests * chore: update python samples * fix: enable tests for python-tornado * fix: discriminator property * fix: file type * python: regenerate samples * fix: define file as generic type
This commit is contained in:
committed by
William Cheng
parent
fdeca629bb
commit
d74d2ba031
@@ -27,6 +27,7 @@ class DeserializationTests(unittest.TestCase):
|
||||
data = {
|
||||
'enum_test': {
|
||||
"enum_string": "UPPER",
|
||||
"enum_string_required": "lower",
|
||||
"enum_integer": 1,
|
||||
"enum_number": 1.1,
|
||||
"outerEnum": "placed"
|
||||
@@ -38,6 +39,7 @@ class DeserializationTests(unittest.TestCase):
|
||||
self.assertTrue(isinstance(deserialized['enum_test'], petstore_api.EnumTest))
|
||||
self.assertEqual(deserialized['enum_test'],
|
||||
petstore_api.EnumTest(enum_string="UPPER",
|
||||
enum_string_required="lower",
|
||||
enum_integer=1,
|
||||
enum_number=1.1,
|
||||
outer_enum=petstore_api.OuterEnum.PLACED))
|
||||
|
||||
Reference in New Issue
Block a user