forked from loafle/openapi-generator-original
[python] Close test API clients (#20400)
* close api client * update samples * update python pydantic v1 test files * update python disallow additional property tests * update python tests * update python tests * update python aiohttp tests * update python pydantic aiohttp tests * update python pydantic v1 tests * revert sync teardown * update python disallow tests * update FILES * update python echo api tests * update python tests --------- Co-authored-by: Huan-Cheng Chang <changhc84@gmail.com>
This commit is contained in:
parent
43f59bab81
commit
85c81bee5b
@ -15,14 +15,14 @@ class {{#operations}}Test{{classname}}(unittest.{{#asyncio}}IsolatedAsyncio{{/as
|
||||
self.api = {{classname}}()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
{{/asyncio}}
|
||||
{{^asyncio}}
|
||||
def setUp(self) -> None:
|
||||
self.api = {{classname}}()
|
||||
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
self.api.api_client.close()
|
||||
{{/asyncio}}
|
||||
|
||||
{{#operation}}
|
||||
|
@ -15,7 +15,7 @@ class {{#operations}}Test{{classname}}(unittest.{{#asyncio}}IsolatedAsyncio{{/as
|
||||
self.api = {{classname}}()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
{{/asyncio}}
|
||||
{{^asyncio}}
|
||||
def setUp(self) -> None:
|
||||
|
@ -15,14 +15,14 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from openapi_client.api.auth_api import AuthApi # noqa: E501
|
||||
from openapi_client.api.auth_api import AuthApi
|
||||
|
||||
|
||||
class TestAuthApi(unittest.TestCase):
|
||||
"""AuthApi unit test stubs"""
|
||||
|
||||
def setUp(self) -> None:
|
||||
self.api = AuthApi() # noqa: E501
|
||||
self.api = AuthApi()
|
||||
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
@ -30,7 +30,14 @@ class TestAuthApi(unittest.TestCase):
|
||||
def test_test_auth_http_basic(self) -> None:
|
||||
"""Test case for test_auth_http_basic
|
||||
|
||||
To test HTTP basic authentication # noqa: E501
|
||||
To test HTTP basic authentication
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_auth_http_bearer(self) -> None:
|
||||
"""Test case for test_auth_http_bearer
|
||||
|
||||
To test HTTP bearer authentication
|
||||
"""
|
||||
pass
|
||||
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.bird import Bird # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.bird import Bird
|
||||
|
||||
class TestBird(unittest.TestCase):
|
||||
"""Bird unit test stubs"""
|
||||
@ -29,20 +26,20 @@ class TestBird(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Bird:
|
||||
"""Test Bird
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `Bird`
|
||||
"""
|
||||
model = openapi_client.models.bird.Bird() # noqa: E501
|
||||
if include_optional :
|
||||
model = Bird()
|
||||
if include_optional:
|
||||
return Bird(
|
||||
size = '',
|
||||
size = '',
|
||||
color = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Bird(
|
||||
)
|
||||
"""
|
||||
|
@ -3,36 +3,97 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.api.body_api import BodyApi # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.api.body_api import BodyApi
|
||||
|
||||
|
||||
class TestBodyApi(unittest.TestCase):
|
||||
"""BodyApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = openapi_client.api.body_api.BodyApi() # noqa: E501
|
||||
def setUp(self) -> None:
|
||||
self.api = BodyApi()
|
||||
|
||||
def tearDown(self):
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_test_echo_body_pet(self):
|
||||
def test_test_binary_gif(self) -> None:
|
||||
"""Test case for test_binary_gif
|
||||
|
||||
Test binary (gif) response body
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_body_application_octetstream_binary(self) -> None:
|
||||
"""Test case for test_body_application_octetstream_binary
|
||||
|
||||
Test body parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_body_multipart_formdata_array_of_binary(self) -> None:
|
||||
"""Test case for test_body_multipart_formdata_array_of_binary
|
||||
|
||||
Test array of binary in multipart mime
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_body_multipart_formdata_single_binary(self) -> None:
|
||||
"""Test case for test_body_multipart_formdata_single_binary
|
||||
|
||||
Test single binary in multipart mime
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_all_of_pet(self) -> None:
|
||||
"""Test case for test_echo_body_all_of_pet
|
||||
|
||||
Test body parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_free_form_object_response_string(self) -> None:
|
||||
"""Test case for test_echo_body_free_form_object_response_string
|
||||
|
||||
Test free form object
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_pet(self) -> None:
|
||||
"""Test case for test_echo_body_pet
|
||||
|
||||
Test body parameter(s) # noqa: E501
|
||||
Test body parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_pet_response_string(self) -> None:
|
||||
"""Test case for test_echo_body_pet_response_string
|
||||
|
||||
Test empty response body
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_string_enum(self) -> None:
|
||||
"""Test case for test_echo_body_string_enum
|
||||
|
||||
Test string enum response body
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_tag_response_string(self) -> None:
|
||||
"""Test case for test_echo_body_tag_response_string
|
||||
|
||||
Test empty json (request body)
|
||||
"""
|
||||
pass
|
||||
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.category import Category # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.category import Category
|
||||
|
||||
class TestCategory(unittest.TestCase):
|
||||
"""Category unit test stubs"""
|
||||
@ -29,20 +26,20 @@ class TestCategory(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Category:
|
||||
"""Test Category
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `Category`
|
||||
"""
|
||||
model = openapi_client.models.category.Category() # noqa: E501
|
||||
if include_optional :
|
||||
model = Category()
|
||||
if include_optional:
|
||||
return Category(
|
||||
id = 1,
|
||||
id = 1,
|
||||
name = 'Dogs'
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Category(
|
||||
)
|
||||
"""
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.data_query import DataQuery # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.data_query import DataQuery
|
||||
|
||||
class TestDataQuery(unittest.TestCase):
|
||||
"""DataQuery unit test stubs"""
|
||||
@ -29,21 +26,21 @@ class TestDataQuery(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> DataQuery:
|
||||
"""Test DataQuery
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `DataQuery`
|
||||
"""
|
||||
model = openapi_client.models.data_query.DataQuery() # noqa: E501
|
||||
if include_optional :
|
||||
model = DataQuery()
|
||||
if include_optional:
|
||||
return DataQuery(
|
||||
suffix = '',
|
||||
text = 'Some text',
|
||||
suffix = '',
|
||||
text = 'Some text',
|
||||
var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return DataQuery(
|
||||
)
|
||||
"""
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.default_value import DefaultValue # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.default_value import DefaultValue
|
||||
|
||||
class TestDefaultValue(unittest.TestCase):
|
||||
"""DefaultValue unit test stubs"""
|
||||
@ -29,34 +26,40 @@ class TestDefaultValue(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> DefaultValue:
|
||||
"""Test DefaultValue
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `DefaultValue`
|
||||
"""
|
||||
model = openapi_client.models.default_value.DefaultValue() # noqa: E501
|
||||
if include_optional :
|
||||
model = DefaultValue()
|
||||
if include_optional:
|
||||
return DefaultValue(
|
||||
array_string_enum_ref_default = [
|
||||
'success'
|
||||
],
|
||||
array_string_enum_default = [
|
||||
'success'
|
||||
],
|
||||
],
|
||||
array_string_default = [
|
||||
''
|
||||
],
|
||||
],
|
||||
array_integer_default = [
|
||||
56
|
||||
],
|
||||
],
|
||||
array_string = [
|
||||
''
|
||||
],
|
||||
],
|
||||
array_string_nullable = [
|
||||
''
|
||||
],
|
||||
],
|
||||
array_string_extension_nullable = [
|
||||
''
|
||||
],
|
||||
string_nullable = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return DefaultValue(
|
||||
)
|
||||
"""
|
||||
|
@ -3,36 +3,48 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.api.form_api import FormApi # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.api.form_api import FormApi
|
||||
|
||||
|
||||
class TestFormApi(unittest.TestCase):
|
||||
"""FormApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = openapi_client.api.form_api.FormApi() # noqa: E501
|
||||
def setUp(self) -> None:
|
||||
self.api = FormApi()
|
||||
|
||||
def tearDown(self):
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_test_form_integer_boolean_string(self):
|
||||
def test_test_form_integer_boolean_string(self) -> None:
|
||||
"""Test case for test_form_integer_boolean_string
|
||||
|
||||
Test form parameter(s) # noqa: E501
|
||||
Test form parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_form_object_multipart(self) -> None:
|
||||
"""Test case for test_form_object_multipart
|
||||
|
||||
Test form parameter(s) for multipart schema
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_form_oneof(self) -> None:
|
||||
"""Test case for test_form_oneof
|
||||
|
||||
Test form parameter(s) for oneOf schema
|
||||
"""
|
||||
pass
|
||||
|
||||
|
@ -3,36 +3,34 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.api.header_api import HeaderApi # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.api.header_api import HeaderApi
|
||||
|
||||
|
||||
class TestHeaderApi(unittest.TestCase):
|
||||
"""HeaderApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = openapi_client.api.header_api.HeaderApi() # noqa: E501
|
||||
def setUp(self) -> None:
|
||||
self.api = HeaderApi()
|
||||
|
||||
def tearDown(self):
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_test_header_integer_boolean_string(self):
|
||||
"""Test case for test_header_integer_boolean_string
|
||||
def test_test_header_integer_boolean_string_enums(self) -> None:
|
||||
"""Test case for test_header_integer_boolean_string_enums
|
||||
|
||||
Test header parameter(s) # noqa: E501
|
||||
Test header parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.number_properties_only import NumberPropertiesOnly # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.number_properties_only import NumberPropertiesOnly
|
||||
|
||||
class TestNumberPropertiesOnly(unittest.TestCase):
|
||||
"""NumberPropertiesOnly unit test stubs"""
|
||||
@ -29,21 +26,21 @@ class TestNumberPropertiesOnly(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> NumberPropertiesOnly:
|
||||
"""Test NumberPropertiesOnly
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `NumberPropertiesOnly`
|
||||
"""
|
||||
model = openapi_client.models.number_properties_only.NumberPropertiesOnly() # noqa: E501
|
||||
if include_optional :
|
||||
model = NumberPropertiesOnly()
|
||||
if include_optional:
|
||||
return NumberPropertiesOnly(
|
||||
number = 1.337,
|
||||
float = 1.337,
|
||||
double = ''
|
||||
number = 1.337,
|
||||
var_float = 1.337,
|
||||
double = 0.8
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return NumberPropertiesOnly(
|
||||
)
|
||||
"""
|
||||
|
@ -3,36 +3,34 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.api.path_api import PathApi # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.api.path_api import PathApi
|
||||
|
||||
|
||||
class TestPathApi(unittest.TestCase):
|
||||
"""PathApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = openapi_client.api.path_api.PathApi() # noqa: E501
|
||||
def setUp(self) -> None:
|
||||
self.api = PathApi()
|
||||
|
||||
def tearDown(self):
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_tests_path_string_path_string_integer_path_integer(self):
|
||||
"""Test case for tests_path_string_path_string_integer_path_integer
|
||||
def test_tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(self) -> None:
|
||||
"""Test case for tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path
|
||||
|
||||
Test path parameter(s) # noqa: E501
|
||||
Test path parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.pet import Pet # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.pet import Pet
|
||||
|
||||
class TestPet(unittest.TestCase):
|
||||
"""Pet unit test stubs"""
|
||||
@ -29,32 +26,32 @@ class TestPet(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Pet:
|
||||
"""Test Pet
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `Pet`
|
||||
"""
|
||||
model = openapi_client.models.pet.Pet() # noqa: E501
|
||||
if include_optional :
|
||||
model = Pet()
|
||||
if include_optional:
|
||||
return Pet(
|
||||
id = 10,
|
||||
name = 'doggie',
|
||||
id = 10,
|
||||
name = 'doggie',
|
||||
category = openapi_client.models.category.Category(
|
||||
id = 1,
|
||||
name = 'Dogs', ),
|
||||
name = 'Dogs', ),
|
||||
photo_urls = [
|
||||
''
|
||||
],
|
||||
],
|
||||
tags = [
|
||||
openapi_client.models.tag.Tag(
|
||||
id = 56,
|
||||
name = '', )
|
||||
],
|
||||
],
|
||||
status = 'available'
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Pet(
|
||||
name = 'doggie',
|
||||
photo_urls = [
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.query import Query # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.query import Query
|
||||
|
||||
class TestQuery(unittest.TestCase):
|
||||
"""Query unit test stubs"""
|
||||
@ -29,22 +26,22 @@ class TestQuery(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Query:
|
||||
"""Test Query
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `Query`
|
||||
"""
|
||||
model = openapi_client.models.query.Query() # noqa: E501
|
||||
if include_optional :
|
||||
model = Query()
|
||||
if include_optional:
|
||||
return Query(
|
||||
id = 56,
|
||||
id = 56,
|
||||
outcomes = [
|
||||
'SUCCESS'
|
||||
]
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Query(
|
||||
)
|
||||
"""
|
||||
|
@ -3,50 +3,97 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.api.query_api import QueryApi # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.api.query_api import QueryApi
|
||||
|
||||
|
||||
class TestQueryApi(unittest.TestCase):
|
||||
"""QueryApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = openapi_client.api.query_api.QueryApi() # noqa: E501
|
||||
def setUp(self) -> None:
|
||||
self.api = QueryApi()
|
||||
|
||||
def tearDown(self):
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_test_query_integer_boolean_string(self):
|
||||
def test_test_enum_ref_string(self) -> None:
|
||||
"""Test case for test_enum_ref_string
|
||||
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_datetime_date_string(self) -> None:
|
||||
"""Test case for test_query_datetime_date_string
|
||||
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_integer_boolean_string(self) -> None:
|
||||
"""Test case for test_query_integer_boolean_string
|
||||
|
||||
Test query parameter(s) # noqa: E501
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_form_explode_true_array_string(self):
|
||||
def test_test_query_style_deep_object_explode_true_object(self) -> None:
|
||||
"""Test case for test_query_style_deep_object_explode_true_object
|
||||
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_deep_object_explode_true_object_all_of(self) -> None:
|
||||
"""Test case for test_query_style_deep_object_explode_true_object_all_of
|
||||
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_form_explode_false_array_integer(self) -> None:
|
||||
"""Test case for test_query_style_form_explode_false_array_integer
|
||||
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_form_explode_false_array_string(self) -> None:
|
||||
"""Test case for test_query_style_form_explode_false_array_string
|
||||
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_form_explode_true_array_string(self) -> None:
|
||||
"""Test case for test_query_style_form_explode_true_array_string
|
||||
|
||||
Test query parameter(s) # noqa: E501
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_form_explode_true_object(self):
|
||||
def test_test_query_style_form_explode_true_object(self) -> None:
|
||||
"""Test case for test_query_style_form_explode_true_object
|
||||
|
||||
Test query parameter(s) # noqa: E501
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_form_explode_true_object_all_of(self) -> None:
|
||||
"""Test case for test_query_style_form_explode_true_object_all_of
|
||||
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.string_enum_ref import StringEnumRef # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.string_enum_ref import StringEnumRef
|
||||
|
||||
class TestStringEnumRef(unittest.TestCase):
|
||||
"""StringEnumRef unit test stubs"""
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.tag import Tag # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.tag import Tag
|
||||
|
||||
class TestTag(unittest.TestCase):
|
||||
"""Tag unit test stubs"""
|
||||
@ -29,20 +26,20 @@ class TestTag(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Tag:
|
||||
"""Test Tag
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `Tag`
|
||||
"""
|
||||
model = openapi_client.models.tag.Tag() # noqa: E501
|
||||
if include_optional :
|
||||
model = Tag()
|
||||
if include_optional:
|
||||
return Tag(
|
||||
id = 56,
|
||||
id = 56,
|
||||
name = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Tag(
|
||||
)
|
||||
"""
|
||||
|
@ -28,7 +28,7 @@ class TestTestFormObjectMultipartRequestMarker(unittest.TestCase):
|
||||
|
||||
def make_instance(self, include_optional) -> TestFormObjectMultipartRequestMarker:
|
||||
"""Test TestFormObjectMultipartRequestMarker
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `TestFormObjectMultipartRequestMarker`
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter import TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter import TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(unittest.TestCase):
|
||||
"""TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter unit test stubs"""
|
||||
@ -29,22 +26,22 @@ class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(uni
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter:
|
||||
"""Test TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter`
|
||||
"""
|
||||
model = openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() # noqa: E501
|
||||
if include_optional :
|
||||
model = TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter()
|
||||
if include_optional:
|
||||
return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(
|
||||
size = '',
|
||||
color = '',
|
||||
id = 1,
|
||||
size = '',
|
||||
color = '',
|
||||
id = 1,
|
||||
name = 'Dogs'
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(
|
||||
)
|
||||
"""
|
||||
|
@ -1,54 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from openapi_client.models.test_query_style_form_explode_true_array_integer_query_object_parameter import TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter
|
||||
|
||||
class TestTestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter(unittest.TestCase):
|
||||
"""TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter:
|
||||
"""Test TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter`
|
||||
"""
|
||||
model = TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter()
|
||||
if include_optional:
|
||||
return TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter(
|
||||
values = [
|
||||
56
|
||||
]
|
||||
)
|
||||
else:
|
||||
return TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter(
|
||||
)
|
||||
"""
|
||||
|
||||
def testTestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter(self):
|
||||
"""Test TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
|
||||
|
||||
class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.TestCase):
|
||||
"""TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter unit test stubs"""
|
||||
@ -29,21 +26,21 @@ class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter:
|
||||
"""Test TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter`
|
||||
"""
|
||||
model = openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() # noqa: E501
|
||||
if include_optional :
|
||||
model = TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter()
|
||||
if include_optional:
|
||||
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
|
||||
values = [
|
||||
''
|
||||
]
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
|
||||
)
|
||||
"""
|
||||
|
@ -22,10 +22,10 @@ class TestAuthApi(unittest.TestCase):
|
||||
"""AuthApi unit test stubs"""
|
||||
|
||||
def setUp(self) -> None:
|
||||
self.api = AuthApi() # noqa: E501
|
||||
self.api = AuthApi()
|
||||
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
self.api.api_client.close()
|
||||
|
||||
def test_test_auth_http_basic(self) -> None:
|
||||
"""Test case for test_auth_http_basic
|
||||
@ -34,6 +34,13 @@ class TestAuthApi(unittest.TestCase):
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_auth_http_bearer(self) -> None:
|
||||
"""Test case for test_auth_http_bearer
|
||||
|
||||
To test HTTP bearer authentication # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
@ -3,22 +3,20 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.bird import Bird # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
|
||||
class TestBird(unittest.TestCase):
|
||||
"""Bird unit test stubs"""
|
||||
@ -29,20 +27,20 @@ class TestBird(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Bird:
|
||||
"""Test Bird
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `Bird`
|
||||
"""
|
||||
model = openapi_client.models.bird.Bird() # noqa: E501
|
||||
if include_optional :
|
||||
model = Bird() # noqa: E501
|
||||
if include_optional:
|
||||
return Bird(
|
||||
size = '',
|
||||
size = '',
|
||||
color = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Bird(
|
||||
)
|
||||
"""
|
||||
|
@ -3,39 +3,100 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.api.body_api import BodyApi # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
|
||||
|
||||
class TestBodyApi(unittest.TestCase):
|
||||
"""BodyApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = openapi_client.api.body_api.BodyApi() # noqa: E501
|
||||
def setUp(self) -> None:
|
||||
self.api = BodyApi()
|
||||
|
||||
def tearDown(self):
|
||||
def tearDown(self) -> None:
|
||||
self.api.api_client.close()
|
||||
|
||||
def test_test_binary_gif(self) -> None:
|
||||
"""Test case for test_binary_gif
|
||||
|
||||
Test binary (gif) response body # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_pet(self):
|
||||
def test_test_body_application_octetstream_binary(self) -> None:
|
||||
"""Test case for test_body_application_octetstream_binary
|
||||
|
||||
Test body parameter(s) # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_body_multipart_formdata_array_of_binary(self) -> None:
|
||||
"""Test case for test_body_multipart_formdata_array_of_binary
|
||||
|
||||
Test array of binary in multipart mime # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_body_multipart_formdata_single_binary(self) -> None:
|
||||
"""Test case for test_body_multipart_formdata_single_binary
|
||||
|
||||
Test single binary in multipart mime # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_all_of_pet(self) -> None:
|
||||
"""Test case for test_echo_body_all_of_pet
|
||||
|
||||
Test body parameter(s) # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_free_form_object_response_string(self) -> None:
|
||||
"""Test case for test_echo_body_free_form_object_response_string
|
||||
|
||||
Test free form object # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_pet(self) -> None:
|
||||
"""Test case for test_echo_body_pet
|
||||
|
||||
Test body parameter(s) # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_pet_response_string(self) -> None:
|
||||
"""Test case for test_echo_body_pet_response_string
|
||||
|
||||
Test empty response body # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_string_enum(self) -> None:
|
||||
"""Test case for test_echo_body_string_enum
|
||||
|
||||
Test string enum response body # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_tag_response_string(self) -> None:
|
||||
"""Test case for test_echo_body_tag_response_string
|
||||
|
||||
Test empty json (request body) # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
@ -3,22 +3,20 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.category import Category # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
|
||||
class TestCategory(unittest.TestCase):
|
||||
"""Category unit test stubs"""
|
||||
@ -29,20 +27,20 @@ class TestCategory(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Category:
|
||||
"""Test Category
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `Category`
|
||||
"""
|
||||
model = openapi_client.models.category.Category() # noqa: E501
|
||||
if include_optional :
|
||||
model = Category() # noqa: E501
|
||||
if include_optional:
|
||||
return Category(
|
||||
id = 1,
|
||||
id = 1,
|
||||
name = 'Dogs'
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Category(
|
||||
)
|
||||
"""
|
||||
|
@ -3,22 +3,20 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.data_query import DataQuery # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
|
||||
class TestDataQuery(unittest.TestCase):
|
||||
"""DataQuery unit test stubs"""
|
||||
@ -29,21 +27,21 @@ class TestDataQuery(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> DataQuery:
|
||||
"""Test DataQuery
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `DataQuery`
|
||||
"""
|
||||
model = openapi_client.models.data_query.DataQuery() # noqa: E501
|
||||
if include_optional :
|
||||
model = DataQuery() # noqa: E501
|
||||
if include_optional:
|
||||
return DataQuery(
|
||||
suffix = '',
|
||||
text = 'Some text',
|
||||
suffix = '',
|
||||
text = 'Some text',
|
||||
var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return DataQuery(
|
||||
)
|
||||
"""
|
||||
|
@ -3,22 +3,20 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.default_value import DefaultValue # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
|
||||
class TestDefaultValue(unittest.TestCase):
|
||||
"""DefaultValue unit test stubs"""
|
||||
@ -29,34 +27,40 @@ class TestDefaultValue(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> DefaultValue:
|
||||
"""Test DefaultValue
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `DefaultValue`
|
||||
"""
|
||||
model = openapi_client.models.default_value.DefaultValue() # noqa: E501
|
||||
if include_optional :
|
||||
model = DefaultValue() # noqa: E501
|
||||
if include_optional:
|
||||
return DefaultValue(
|
||||
array_string_enum_ref_default = [
|
||||
'success'
|
||||
],
|
||||
array_string_enum_default = [
|
||||
'success'
|
||||
],
|
||||
],
|
||||
array_string_default = [
|
||||
''
|
||||
],
|
||||
],
|
||||
array_integer_default = [
|
||||
56
|
||||
],
|
||||
],
|
||||
array_string = [
|
||||
''
|
||||
],
|
||||
],
|
||||
array_string_nullable = [
|
||||
''
|
||||
],
|
||||
],
|
||||
array_string_extension_nullable = [
|
||||
''
|
||||
],
|
||||
string_nullable = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return DefaultValue(
|
||||
)
|
||||
"""
|
||||
|
@ -3,39 +3,51 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.api.form_api import FormApi # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
|
||||
|
||||
class TestFormApi(unittest.TestCase):
|
||||
"""FormApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = openapi_client.api.form_api.FormApi() # noqa: E501
|
||||
def setUp(self) -> None:
|
||||
self.api = FormApi()
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
def tearDown(self) -> None:
|
||||
self.api.api_client.close()
|
||||
|
||||
def test_test_form_integer_boolean_string(self):
|
||||
def test_test_form_integer_boolean_string(self) -> None:
|
||||
"""Test case for test_form_integer_boolean_string
|
||||
|
||||
Test form parameter(s) # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_form_object_multipart(self) -> None:
|
||||
"""Test case for test_form_object_multipart
|
||||
|
||||
Test form parameter(s) for multipart schema # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_form_oneof(self) -> None:
|
||||
"""Test case for test_form_oneof
|
||||
|
||||
Test form parameter(s) for oneOf schema # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
@ -3,34 +3,32 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.api.header_api import HeaderApi # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
|
||||
|
||||
class TestHeaderApi(unittest.TestCase):
|
||||
"""HeaderApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = openapi_client.api.header_api.HeaderApi() # noqa: E501
|
||||
def setUp(self) -> None:
|
||||
self.api = HeaderApi()
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
def tearDown(self) -> None:
|
||||
self.api.api_client.close()
|
||||
|
||||
def test_test_header_integer_boolean_string(self):
|
||||
"""Test case for test_header_integer_boolean_string
|
||||
def test_test_header_integer_boolean_string_enums(self) -> None:
|
||||
"""Test case for test_header_integer_boolean_string_enums
|
||||
|
||||
Test header parameter(s) # noqa: E501
|
||||
"""
|
||||
|
@ -3,22 +3,20 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.number_properties_only import NumberPropertiesOnly # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
|
||||
class TestNumberPropertiesOnly(unittest.TestCase):
|
||||
"""NumberPropertiesOnly unit test stubs"""
|
||||
@ -29,21 +27,21 @@ class TestNumberPropertiesOnly(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> NumberPropertiesOnly:
|
||||
"""Test NumberPropertiesOnly
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `NumberPropertiesOnly`
|
||||
"""
|
||||
model = openapi_client.models.number_properties_only.NumberPropertiesOnly() # noqa: E501
|
||||
if include_optional :
|
||||
model = NumberPropertiesOnly() # noqa: E501
|
||||
if include_optional:
|
||||
return NumberPropertiesOnly(
|
||||
number = 1.337,
|
||||
float = 1.337,
|
||||
double = ''
|
||||
number = 1.337,
|
||||
float = 1.337,
|
||||
double = 0.8
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return NumberPropertiesOnly(
|
||||
)
|
||||
"""
|
||||
|
@ -3,34 +3,32 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.api.path_api import PathApi # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
|
||||
|
||||
class TestPathApi(unittest.TestCase):
|
||||
"""PathApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = openapi_client.api.path_api.PathApi() # noqa: E501
|
||||
def setUp(self) -> None:
|
||||
self.api = PathApi()
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
def tearDown(self) -> None:
|
||||
self.api.api_client.close()
|
||||
|
||||
def test_tests_path_string_path_string_integer_path_integer(self):
|
||||
"""Test case for tests_path_string_path_string_integer_path_integer
|
||||
def test_tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(self) -> None:
|
||||
"""Test case for tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path
|
||||
|
||||
Test path parameter(s) # noqa: E501
|
||||
"""
|
||||
|
@ -3,22 +3,20 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.pet import Pet # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
|
||||
class TestPet(unittest.TestCase):
|
||||
"""Pet unit test stubs"""
|
||||
@ -29,32 +27,32 @@ class TestPet(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Pet:
|
||||
"""Test Pet
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `Pet`
|
||||
"""
|
||||
model = openapi_client.models.pet.Pet() # noqa: E501
|
||||
if include_optional :
|
||||
model = Pet() # noqa: E501
|
||||
if include_optional:
|
||||
return Pet(
|
||||
id = 10,
|
||||
name = 'doggie',
|
||||
id = 10,
|
||||
name = 'doggie',
|
||||
category = openapi_client.models.category.Category(
|
||||
id = 1,
|
||||
name = 'Dogs', ),
|
||||
name = 'Dogs', ),
|
||||
photo_urls = [
|
||||
''
|
||||
],
|
||||
],
|
||||
tags = [
|
||||
openapi_client.models.tag.Tag(
|
||||
id = 56,
|
||||
name = '', )
|
||||
],
|
||||
],
|
||||
status = 'available'
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Pet(
|
||||
name = 'doggie',
|
||||
photo_urls = [
|
||||
|
@ -3,22 +3,20 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.query import Query # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
|
||||
class TestQuery(unittest.TestCase):
|
||||
"""Query unit test stubs"""
|
||||
@ -29,22 +27,22 @@ class TestQuery(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Query:
|
||||
"""Test Query
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `Query`
|
||||
"""
|
||||
model = openapi_client.models.query.Query() # noqa: E501
|
||||
if include_optional :
|
||||
model = Query() # noqa: E501
|
||||
if include_optional:
|
||||
return Query(
|
||||
id = 56,
|
||||
id = 56,
|
||||
outcomes = [
|
||||
'SUCCESS'
|
||||
]
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Query(
|
||||
)
|
||||
"""
|
||||
|
@ -3,53 +3,100 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.api.query_api import QueryApi # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
|
||||
|
||||
class TestQueryApi(unittest.TestCase):
|
||||
"""QueryApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = openapi_client.api.query_api.QueryApi() # noqa: E501
|
||||
def setUp(self) -> None:
|
||||
self.api = QueryApi()
|
||||
|
||||
def tearDown(self):
|
||||
def tearDown(self) -> None:
|
||||
self.api.api_client.close()
|
||||
|
||||
def test_test_enum_ref_string(self) -> None:
|
||||
"""Test case for test_enum_ref_string
|
||||
|
||||
Test query parameter(s) # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_integer_boolean_string(self):
|
||||
def test_test_query_datetime_date_string(self) -> None:
|
||||
"""Test case for test_query_datetime_date_string
|
||||
|
||||
Test query parameter(s) # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_integer_boolean_string(self) -> None:
|
||||
"""Test case for test_query_integer_boolean_string
|
||||
|
||||
Test query parameter(s) # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_form_explode_true_array_string(self):
|
||||
def test_test_query_style_deep_object_explode_true_object(self) -> None:
|
||||
"""Test case for test_query_style_deep_object_explode_true_object
|
||||
|
||||
Test query parameter(s) # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_deep_object_explode_true_object_all_of(self) -> None:
|
||||
"""Test case for test_query_style_deep_object_explode_true_object_all_of
|
||||
|
||||
Test query parameter(s) # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_form_explode_false_array_integer(self) -> None:
|
||||
"""Test case for test_query_style_form_explode_false_array_integer
|
||||
|
||||
Test query parameter(s) # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_form_explode_false_array_string(self) -> None:
|
||||
"""Test case for test_query_style_form_explode_false_array_string
|
||||
|
||||
Test query parameter(s) # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_form_explode_true_array_string(self) -> None:
|
||||
"""Test case for test_query_style_form_explode_true_array_string
|
||||
|
||||
Test query parameter(s) # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_form_explode_true_object(self):
|
||||
def test_test_query_style_form_explode_true_object(self) -> None:
|
||||
"""Test case for test_query_style_form_explode_true_object
|
||||
|
||||
Test query parameter(s) # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_form_explode_true_object_all_of(self) -> None:
|
||||
"""Test case for test_query_style_form_explode_true_object_all_of
|
||||
|
||||
Test query parameter(s) # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
@ -3,22 +3,20 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.string_enum_ref import StringEnumRef # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
|
||||
class TestStringEnumRef(unittest.TestCase):
|
||||
"""StringEnumRef unit test stubs"""
|
||||
|
@ -3,22 +3,20 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.tag import Tag # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
|
||||
class TestTag(unittest.TestCase):
|
||||
"""Tag unit test stubs"""
|
||||
@ -29,20 +27,20 @@ class TestTag(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Tag:
|
||||
"""Test Tag
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `Tag`
|
||||
"""
|
||||
model = openapi_client.models.tag.Tag() # noqa: E501
|
||||
if include_optional :
|
||||
model = Tag() # noqa: E501
|
||||
if include_optional:
|
||||
return Tag(
|
||||
id = 56,
|
||||
id = 56,
|
||||
name = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Tag(
|
||||
)
|
||||
"""
|
||||
|
@ -3,22 +3,20 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter import TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
|
||||
class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(unittest.TestCase):
|
||||
"""TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter unit test stubs"""
|
||||
@ -29,22 +27,22 @@ class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(uni
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter:
|
||||
"""Test TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter`
|
||||
"""
|
||||
model = openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() # noqa: E501
|
||||
if include_optional :
|
||||
model = TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() # noqa: E501
|
||||
if include_optional:
|
||||
return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(
|
||||
size = '',
|
||||
color = '',
|
||||
id = 1,
|
||||
size = '',
|
||||
color = '',
|
||||
id = 1,
|
||||
name = 'Dogs'
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(
|
||||
)
|
||||
"""
|
||||
|
@ -1,55 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
from openapi_client.models.test_query_style_form_explode_true_array_integer_query_object_parameter import TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter # noqa: E501
|
||||
|
||||
class TestTestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter(unittest.TestCase):
|
||||
"""TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter:
|
||||
"""Test TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter`
|
||||
"""
|
||||
model = TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter() # noqa: E501
|
||||
if include_optional:
|
||||
return TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter(
|
||||
values = [
|
||||
56
|
||||
]
|
||||
)
|
||||
else:
|
||||
return TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter(
|
||||
)
|
||||
"""
|
||||
|
||||
def testTestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter(self):
|
||||
"""Test TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
@ -3,22 +3,20 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
|
||||
class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.TestCase):
|
||||
"""TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter unit test stubs"""
|
||||
@ -29,21 +27,21 @@ class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter:
|
||||
"""Test TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter`
|
||||
"""
|
||||
model = openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() # noqa: E501
|
||||
if include_optional :
|
||||
model = TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() # noqa: E501
|
||||
if include_optional:
|
||||
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
|
||||
values = [
|
||||
''
|
||||
]
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
|
||||
)
|
||||
"""
|
||||
|
@ -15,14 +15,14 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from openapi_client.api.auth_api import AuthApi # noqa: E501
|
||||
from openapi_client.api.auth_api import AuthApi
|
||||
|
||||
|
||||
class TestAuthApi(unittest.TestCase):
|
||||
"""AuthApi unit test stubs"""
|
||||
|
||||
def setUp(self) -> None:
|
||||
self.api = AuthApi() # noqa: E501
|
||||
self.api = AuthApi()
|
||||
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
@ -30,7 +30,14 @@ class TestAuthApi(unittest.TestCase):
|
||||
def test_test_auth_http_basic(self) -> None:
|
||||
"""Test case for test_auth_http_basic
|
||||
|
||||
To test HTTP basic authentication # noqa: E501
|
||||
To test HTTP basic authentication
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_auth_http_bearer(self) -> None:
|
||||
"""Test case for test_auth_http_bearer
|
||||
|
||||
To test HTTP bearer authentication
|
||||
"""
|
||||
pass
|
||||
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.bird import Bird # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.bird import Bird
|
||||
|
||||
class TestBird(unittest.TestCase):
|
||||
"""Bird unit test stubs"""
|
||||
@ -29,20 +26,20 @@ class TestBird(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Bird:
|
||||
"""Test Bird
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `Bird`
|
||||
"""
|
||||
model = openapi_client.models.bird.Bird() # noqa: E501
|
||||
if include_optional :
|
||||
model = Bird()
|
||||
if include_optional:
|
||||
return Bird(
|
||||
size = '',
|
||||
size = '',
|
||||
color = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Bird(
|
||||
)
|
||||
"""
|
||||
|
@ -3,36 +3,97 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.api.body_api import BodyApi # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.api.body_api import BodyApi
|
||||
|
||||
|
||||
class TestBodyApi(unittest.TestCase):
|
||||
"""BodyApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = openapi_client.api.body_api.BodyApi() # noqa: E501
|
||||
def setUp(self) -> None:
|
||||
self.api = BodyApi()
|
||||
|
||||
def tearDown(self):
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_test_echo_body_pet(self):
|
||||
def test_test_binary_gif(self) -> None:
|
||||
"""Test case for test_binary_gif
|
||||
|
||||
Test binary (gif) response body
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_body_application_octetstream_binary(self) -> None:
|
||||
"""Test case for test_body_application_octetstream_binary
|
||||
|
||||
Test body parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_body_multipart_formdata_array_of_binary(self) -> None:
|
||||
"""Test case for test_body_multipart_formdata_array_of_binary
|
||||
|
||||
Test array of binary in multipart mime
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_body_multipart_formdata_single_binary(self) -> None:
|
||||
"""Test case for test_body_multipart_formdata_single_binary
|
||||
|
||||
Test single binary in multipart mime
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_all_of_pet(self) -> None:
|
||||
"""Test case for test_echo_body_all_of_pet
|
||||
|
||||
Test body parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_free_form_object_response_string(self) -> None:
|
||||
"""Test case for test_echo_body_free_form_object_response_string
|
||||
|
||||
Test free form object
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_pet(self) -> None:
|
||||
"""Test case for test_echo_body_pet
|
||||
|
||||
Test body parameter(s) # noqa: E501
|
||||
Test body parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_pet_response_string(self) -> None:
|
||||
"""Test case for test_echo_body_pet_response_string
|
||||
|
||||
Test empty response body
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_string_enum(self) -> None:
|
||||
"""Test case for test_echo_body_string_enum
|
||||
|
||||
Test string enum response body
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_echo_body_tag_response_string(self) -> None:
|
||||
"""Test case for test_echo_body_tag_response_string
|
||||
|
||||
Test empty json (request body)
|
||||
"""
|
||||
pass
|
||||
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.category import Category # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.category import Category
|
||||
|
||||
class TestCategory(unittest.TestCase):
|
||||
"""Category unit test stubs"""
|
||||
@ -29,20 +26,20 @@ class TestCategory(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Category:
|
||||
"""Test Category
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `Category`
|
||||
"""
|
||||
model = openapi_client.models.category.Category() # noqa: E501
|
||||
if include_optional :
|
||||
model = Category()
|
||||
if include_optional:
|
||||
return Category(
|
||||
id = 1,
|
||||
id = 1,
|
||||
name = 'Dogs'
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Category(
|
||||
)
|
||||
"""
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.data_query import DataQuery # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.data_query import DataQuery
|
||||
|
||||
class TestDataQuery(unittest.TestCase):
|
||||
"""DataQuery unit test stubs"""
|
||||
@ -29,21 +26,21 @@ class TestDataQuery(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> DataQuery:
|
||||
"""Test DataQuery
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `DataQuery`
|
||||
"""
|
||||
model = openapi_client.models.data_query.DataQuery() # noqa: E501
|
||||
if include_optional :
|
||||
model = DataQuery()
|
||||
if include_optional:
|
||||
return DataQuery(
|
||||
suffix = '',
|
||||
text = 'Some text',
|
||||
suffix = '',
|
||||
text = 'Some text',
|
||||
var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return DataQuery(
|
||||
)
|
||||
"""
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.default_value import DefaultValue # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.default_value import DefaultValue
|
||||
|
||||
class TestDefaultValue(unittest.TestCase):
|
||||
"""DefaultValue unit test stubs"""
|
||||
@ -29,34 +26,40 @@ class TestDefaultValue(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> DefaultValue:
|
||||
"""Test DefaultValue
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `DefaultValue`
|
||||
"""
|
||||
model = openapi_client.models.default_value.DefaultValue() # noqa: E501
|
||||
if include_optional :
|
||||
model = DefaultValue()
|
||||
if include_optional:
|
||||
return DefaultValue(
|
||||
array_string_enum_ref_default = [
|
||||
'success'
|
||||
],
|
||||
array_string_enum_default = [
|
||||
'success'
|
||||
],
|
||||
],
|
||||
array_string_default = [
|
||||
''
|
||||
],
|
||||
],
|
||||
array_integer_default = [
|
||||
56
|
||||
],
|
||||
],
|
||||
array_string = [
|
||||
''
|
||||
],
|
||||
],
|
||||
array_string_nullable = [
|
||||
''
|
||||
],
|
||||
],
|
||||
array_string_extension_nullable = [
|
||||
''
|
||||
],
|
||||
string_nullable = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return DefaultValue(
|
||||
)
|
||||
"""
|
||||
|
@ -3,36 +3,48 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.api.form_api import FormApi # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.api.form_api import FormApi
|
||||
|
||||
|
||||
class TestFormApi(unittest.TestCase):
|
||||
"""FormApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = openapi_client.api.form_api.FormApi() # noqa: E501
|
||||
def setUp(self) -> None:
|
||||
self.api = FormApi()
|
||||
|
||||
def tearDown(self):
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_test_form_integer_boolean_string(self):
|
||||
def test_test_form_integer_boolean_string(self) -> None:
|
||||
"""Test case for test_form_integer_boolean_string
|
||||
|
||||
Test form parameter(s) # noqa: E501
|
||||
Test form parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_form_object_multipart(self) -> None:
|
||||
"""Test case for test_form_object_multipart
|
||||
|
||||
Test form parameter(s) for multipart schema
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_form_oneof(self) -> None:
|
||||
"""Test case for test_form_oneof
|
||||
|
||||
Test form parameter(s) for oneOf schema
|
||||
"""
|
||||
pass
|
||||
|
||||
|
@ -3,36 +3,34 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.api.header_api import HeaderApi # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.api.header_api import HeaderApi
|
||||
|
||||
|
||||
class TestHeaderApi(unittest.TestCase):
|
||||
"""HeaderApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = openapi_client.api.header_api.HeaderApi() # noqa: E501
|
||||
def setUp(self) -> None:
|
||||
self.api = HeaderApi()
|
||||
|
||||
def tearDown(self):
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_test_header_integer_boolean_string(self):
|
||||
"""Test case for test_header_integer_boolean_string
|
||||
def test_test_header_integer_boolean_string_enums(self) -> None:
|
||||
"""Test case for test_header_integer_boolean_string_enums
|
||||
|
||||
Test header parameter(s) # noqa: E501
|
||||
Test header parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.number_properties_only import NumberPropertiesOnly # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.number_properties_only import NumberPropertiesOnly
|
||||
|
||||
class TestNumberPropertiesOnly(unittest.TestCase):
|
||||
"""NumberPropertiesOnly unit test stubs"""
|
||||
@ -29,21 +26,21 @@ class TestNumberPropertiesOnly(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> NumberPropertiesOnly:
|
||||
"""Test NumberPropertiesOnly
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `NumberPropertiesOnly`
|
||||
"""
|
||||
model = openapi_client.models.number_properties_only.NumberPropertiesOnly() # noqa: E501
|
||||
if include_optional :
|
||||
model = NumberPropertiesOnly()
|
||||
if include_optional:
|
||||
return NumberPropertiesOnly(
|
||||
number = 1.337,
|
||||
float = 1.337,
|
||||
double = ''
|
||||
number = 1.337,
|
||||
var_float = 1.337,
|
||||
double = 0.8
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return NumberPropertiesOnly(
|
||||
)
|
||||
"""
|
||||
|
@ -3,36 +3,34 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.api.path_api import PathApi # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.api.path_api import PathApi
|
||||
|
||||
|
||||
class TestPathApi(unittest.TestCase):
|
||||
"""PathApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = openapi_client.api.path_api.PathApi() # noqa: E501
|
||||
def setUp(self) -> None:
|
||||
self.api = PathApi()
|
||||
|
||||
def tearDown(self):
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_tests_path_string_path_string_integer_path_integer(self):
|
||||
"""Test case for tests_path_string_path_string_integer_path_integer
|
||||
def test_tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(self) -> None:
|
||||
"""Test case for tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path
|
||||
|
||||
Test path parameter(s) # noqa: E501
|
||||
Test path parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.pet import Pet # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.pet import Pet
|
||||
|
||||
class TestPet(unittest.TestCase):
|
||||
"""Pet unit test stubs"""
|
||||
@ -29,32 +26,32 @@ class TestPet(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Pet:
|
||||
"""Test Pet
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `Pet`
|
||||
"""
|
||||
model = openapi_client.models.pet.Pet() # noqa: E501
|
||||
if include_optional :
|
||||
model = Pet()
|
||||
if include_optional:
|
||||
return Pet(
|
||||
id = 10,
|
||||
name = 'doggie',
|
||||
id = 10,
|
||||
name = 'doggie',
|
||||
category = openapi_client.models.category.Category(
|
||||
id = 1,
|
||||
name = 'Dogs', ),
|
||||
name = 'Dogs', ),
|
||||
photo_urls = [
|
||||
''
|
||||
],
|
||||
],
|
||||
tags = [
|
||||
openapi_client.models.tag.Tag(
|
||||
id = 56,
|
||||
name = '', )
|
||||
],
|
||||
],
|
||||
status = 'available'
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Pet(
|
||||
name = 'doggie',
|
||||
photo_urls = [
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.query import Query # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.query import Query
|
||||
|
||||
class TestQuery(unittest.TestCase):
|
||||
"""Query unit test stubs"""
|
||||
@ -29,22 +26,22 @@ class TestQuery(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Query:
|
||||
"""Test Query
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `Query`
|
||||
"""
|
||||
model = openapi_client.models.query.Query() # noqa: E501
|
||||
if include_optional :
|
||||
model = Query()
|
||||
if include_optional:
|
||||
return Query(
|
||||
id = 56,
|
||||
id = 56,
|
||||
outcomes = [
|
||||
'SUCCESS'
|
||||
]
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Query(
|
||||
)
|
||||
"""
|
||||
|
@ -3,50 +3,97 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.api.query_api import QueryApi # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.api.query_api import QueryApi
|
||||
|
||||
|
||||
class TestQueryApi(unittest.TestCase):
|
||||
"""QueryApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = openapi_client.api.query_api.QueryApi() # noqa: E501
|
||||
def setUp(self) -> None:
|
||||
self.api = QueryApi()
|
||||
|
||||
def tearDown(self):
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_test_query_integer_boolean_string(self):
|
||||
def test_test_enum_ref_string(self) -> None:
|
||||
"""Test case for test_enum_ref_string
|
||||
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_datetime_date_string(self) -> None:
|
||||
"""Test case for test_query_datetime_date_string
|
||||
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_integer_boolean_string(self) -> None:
|
||||
"""Test case for test_query_integer_boolean_string
|
||||
|
||||
Test query parameter(s) # noqa: E501
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_form_explode_true_array_string(self):
|
||||
def test_test_query_style_deep_object_explode_true_object(self) -> None:
|
||||
"""Test case for test_query_style_deep_object_explode_true_object
|
||||
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_deep_object_explode_true_object_all_of(self) -> None:
|
||||
"""Test case for test_query_style_deep_object_explode_true_object_all_of
|
||||
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_form_explode_false_array_integer(self) -> None:
|
||||
"""Test case for test_query_style_form_explode_false_array_integer
|
||||
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_form_explode_false_array_string(self) -> None:
|
||||
"""Test case for test_query_style_form_explode_false_array_string
|
||||
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_form_explode_true_array_string(self) -> None:
|
||||
"""Test case for test_query_style_form_explode_true_array_string
|
||||
|
||||
Test query parameter(s) # noqa: E501
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_form_explode_true_object(self):
|
||||
def test_test_query_style_form_explode_true_object(self) -> None:
|
||||
"""Test case for test_query_style_form_explode_true_object
|
||||
|
||||
Test query parameter(s) # noqa: E501
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_style_form_explode_true_object_all_of(self) -> None:
|
||||
"""Test case for test_query_style_form_explode_true_object_all_of
|
||||
|
||||
Test query parameter(s)
|
||||
"""
|
||||
pass
|
||||
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.string_enum_ref import StringEnumRef # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.string_enum_ref import StringEnumRef
|
||||
|
||||
class TestStringEnumRef(unittest.TestCase):
|
||||
"""StringEnumRef unit test stubs"""
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.tag import Tag # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.tag import Tag
|
||||
|
||||
class TestTag(unittest.TestCase):
|
||||
"""Tag unit test stubs"""
|
||||
@ -29,20 +26,20 @@ class TestTag(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Tag:
|
||||
"""Test Tag
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `Tag`
|
||||
"""
|
||||
model = openapi_client.models.tag.Tag() # noqa: E501
|
||||
if include_optional :
|
||||
model = Tag()
|
||||
if include_optional:
|
||||
return Tag(
|
||||
id = 56,
|
||||
id = 56,
|
||||
name = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Tag(
|
||||
)
|
||||
"""
|
||||
|
@ -28,7 +28,7 @@ class TestTestFormObjectMultipartRequestMarker(unittest.TestCase):
|
||||
|
||||
def make_instance(self, include_optional) -> TestFormObjectMultipartRequestMarker:
|
||||
"""Test TestFormObjectMultipartRequestMarker
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `TestFormObjectMultipartRequestMarker`
|
||||
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter import TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter import TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(unittest.TestCase):
|
||||
"""TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter unit test stubs"""
|
||||
@ -29,22 +26,22 @@ class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(uni
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter:
|
||||
"""Test TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter`
|
||||
"""
|
||||
model = openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() # noqa: E501
|
||||
if include_optional :
|
||||
model = TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter()
|
||||
if include_optional:
|
||||
return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(
|
||||
size = '',
|
||||
color = '',
|
||||
id = 1,
|
||||
size = '',
|
||||
color = '',
|
||||
id = 1,
|
||||
name = 'Dogs'
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(
|
||||
)
|
||||
"""
|
||||
|
@ -1,54 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from openapi_client.models.test_query_style_form_explode_true_array_integer_query_object_parameter import TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter
|
||||
|
||||
class TestTestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter(unittest.TestCase):
|
||||
"""TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter:
|
||||
"""Test TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter`
|
||||
"""
|
||||
model = TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter()
|
||||
if include_optional:
|
||||
return TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter(
|
||||
values = [
|
||||
56
|
||||
]
|
||||
)
|
||||
else:
|
||||
return TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter(
|
||||
)
|
||||
"""
|
||||
|
||||
def testTestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter(self):
|
||||
"""Test TestQueryStyleFormExplodeTrueArrayIntegerQueryObjectParameter"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
@ -3,22 +3,19 @@
|
||||
"""
|
||||
Echo Server API
|
||||
|
||||
Echo Server API # noqa: E501
|
||||
Echo Server API
|
||||
|
||||
The version of the OpenAPI document: 0.1.0
|
||||
Contact: team@openapitools.org
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import openapi_client
|
||||
from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter # noqa: E501
|
||||
from openapi_client.rest import ApiException
|
||||
from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
|
||||
|
||||
class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.TestCase):
|
||||
"""TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter unit test stubs"""
|
||||
@ -29,21 +26,21 @@ class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter:
|
||||
"""Test TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter`
|
||||
"""
|
||||
model = openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() # noqa: E501
|
||||
if include_optional :
|
||||
model = TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter()
|
||||
if include_optional:
|
||||
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
|
||||
values = [
|
||||
''
|
||||
]
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
|
||||
)
|
||||
"""
|
||||
|
@ -24,7 +24,7 @@ class TestAnotherFakeApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = AnotherFakeApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_call_123_test_special_tags(self) -> None:
|
||||
"""Test case for call_123_test_special_tags
|
||||
|
@ -24,7 +24,7 @@ class TestDefaultApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = DefaultApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_foo_get(self) -> None:
|
||||
"""Test case for foo_get
|
||||
|
@ -42,6 +42,8 @@ class TestEnumTest(unittest.TestCase):
|
||||
enum_number = 1.1,
|
||||
enum_number_vendor_ext = 42,
|
||||
enum_string_vendor_ext = 'FOO',
|
||||
enum_string_single_member = 'abc',
|
||||
enum_integer_single_member = 100,
|
||||
outer_enum = 'placed',
|
||||
outer_enum_integer = 2,
|
||||
outer_enum_default_value = 'placed',
|
||||
|
@ -24,7 +24,7 @@ class TestFakeApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = FakeApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_fake_any_type_request_body(self) -> None:
|
||||
"""Test case for fake_any_type_request_body
|
||||
@ -267,6 +267,13 @@ class TestFakeApi(unittest.IsolatedAsyncioTestCase):
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_upload_file_with_additional_properties(self) -> None:
|
||||
"""Test case for upload_file_with_additional_properties
|
||||
|
||||
uploads a file and additional properties using multipart/form-data
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
@ -24,7 +24,7 @@ class TestFakeClassnameTags123Api(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = FakeClassnameTags123Api()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_test_classname(self) -> None:
|
||||
"""Test case for test_classname
|
||||
|
@ -24,7 +24,7 @@ class TestImportTestDatetimeApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = ImportTestDatetimeApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_import_test_return_datetime(self) -> None:
|
||||
"""Test case for import_test_return_datetime
|
||||
|
@ -24,7 +24,7 @@ class TestPetApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = PetApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_add_pet(self) -> None:
|
||||
"""Test case for add_pet
|
||||
|
@ -24,7 +24,7 @@ class TestStoreApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = StoreApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_delete_order(self) -> None:
|
||||
"""Test case for delete_order
|
||||
|
@ -24,7 +24,7 @@ class TestUserApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = UserApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_create_user(self) -> None:
|
||||
"""Test case for create_user
|
||||
|
@ -24,7 +24,7 @@ class TestAnotherFakeApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = AnotherFakeApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_call_123_test_special_tags(self) -> None:
|
||||
"""Test case for call_123_test_special_tags
|
||||
|
@ -24,7 +24,7 @@ class TestDefaultApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = DefaultApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_foo_get(self) -> None:
|
||||
"""Test case for foo_get
|
||||
|
@ -43,6 +43,8 @@ class TestEnumTest(unittest.TestCase):
|
||||
enum_number = 1.1,
|
||||
enum_number_vendor_ext = 42,
|
||||
enum_string_vendor_ext = 'FOO',
|
||||
enum_string_single_member = 'abc',
|
||||
enum_integer_single_member = 100,
|
||||
outer_enum = 'placed',
|
||||
outer_enum_integer = 2,
|
||||
outer_enum_default_value = 'placed',
|
||||
|
@ -24,7 +24,7 @@ class TestFakeApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = FakeApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_fake_any_type_request_body(self) -> None:
|
||||
"""Test case for fake_any_type_request_body
|
||||
@ -267,6 +267,13 @@ class TestFakeApi(unittest.IsolatedAsyncioTestCase):
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_upload_file_with_additional_properties(self) -> None:
|
||||
"""Test case for upload_file_with_additional_properties
|
||||
|
||||
uploads a file and additional properties using multipart/form-data # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
@ -24,7 +24,7 @@ class TestFakeClassnameTags123Api(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = FakeClassnameTags123Api()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_test_classname(self) -> None:
|
||||
"""Test case for test_classname
|
||||
|
@ -24,7 +24,7 @@ class TestImportTestDatetimeApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = ImportTestDatetimeApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_import_test_return_datetime(self) -> None:
|
||||
"""Test case for import_test_return_datetime
|
||||
|
@ -24,7 +24,7 @@ class TestPetApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = PetApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_add_pet(self) -> None:
|
||||
"""Test case for add_pet
|
||||
|
@ -24,7 +24,7 @@ class TestStoreApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = StoreApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_delete_order(self) -> None:
|
||||
"""Test case for delete_order
|
||||
|
@ -24,7 +24,7 @@ class TestUserApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = UserApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_create_user(self) -> None:
|
||||
"""Test case for create_user
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.additional_properties_any_type import AdditionalPropertiesAnyType # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestAdditionalPropertiesAnyType(unittest.TestCase):
|
||||
"""AdditionalPropertiesAnyType unit test stubs"""
|
||||
@ -28,19 +26,19 @@ class TestAdditionalPropertiesAnyType(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> AdditionalPropertiesAnyType:
|
||||
"""Test AdditionalPropertiesAnyType
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `AdditionalPropertiesAnyType`
|
||||
"""
|
||||
model = petstore_api.models.additional_properties_any_type.AdditionalPropertiesAnyType() # noqa: E501
|
||||
if include_optional :
|
||||
model = AdditionalPropertiesAnyType() # noqa: E501
|
||||
if include_optional:
|
||||
return AdditionalPropertiesAnyType(
|
||||
name = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return AdditionalPropertiesAnyType(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.additional_properties_class import AdditionalPropertiesClass # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestAdditionalPropertiesClass(unittest.TestCase):
|
||||
"""AdditionalPropertiesClass unit test stubs"""
|
||||
@ -28,26 +26,26 @@ class TestAdditionalPropertiesClass(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> AdditionalPropertiesClass:
|
||||
"""Test AdditionalPropertiesClass
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `AdditionalPropertiesClass`
|
||||
"""
|
||||
model = petstore_api.models.additional_properties_class.AdditionalPropertiesClass() # noqa: E501
|
||||
if include_optional :
|
||||
model = AdditionalPropertiesClass() # noqa: E501
|
||||
if include_optional:
|
||||
return AdditionalPropertiesClass(
|
||||
map_property = {
|
||||
'key' : ''
|
||||
},
|
||||
},
|
||||
map_of_map_property = {
|
||||
'key' : {
|
||||
'key' : ''
|
||||
}
|
||||
}
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return AdditionalPropertiesClass(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.additional_properties_object import AdditionalPropertiesObject # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestAdditionalPropertiesObject(unittest.TestCase):
|
||||
"""AdditionalPropertiesObject unit test stubs"""
|
||||
@ -28,19 +26,19 @@ class TestAdditionalPropertiesObject(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> AdditionalPropertiesObject:
|
||||
"""Test AdditionalPropertiesObject
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `AdditionalPropertiesObject`
|
||||
"""
|
||||
model = petstore_api.models.additional_properties_object.AdditionalPropertiesObject() # noqa: E501
|
||||
if include_optional :
|
||||
model = AdditionalPropertiesObject() # noqa: E501
|
||||
if include_optional:
|
||||
return AdditionalPropertiesObject(
|
||||
name = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return AdditionalPropertiesObject(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.additional_properties_with_description_only import AdditionalPropertiesWithDescriptionOnly # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestAdditionalPropertiesWithDescriptionOnly(unittest.TestCase):
|
||||
"""AdditionalPropertiesWithDescriptionOnly unit test stubs"""
|
||||
@ -28,19 +26,19 @@ class TestAdditionalPropertiesWithDescriptionOnly(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> AdditionalPropertiesWithDescriptionOnly:
|
||||
"""Test AdditionalPropertiesWithDescriptionOnly
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `AdditionalPropertiesWithDescriptionOnly`
|
||||
"""
|
||||
model = petstore_api.models.additional_properties_with_description_only.AdditionalPropertiesWithDescriptionOnly() # noqa: E501
|
||||
if include_optional :
|
||||
model = AdditionalPropertiesWithDescriptionOnly() # noqa: E501
|
||||
if include_optional:
|
||||
return AdditionalPropertiesWithDescriptionOnly(
|
||||
name = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return AdditionalPropertiesWithDescriptionOnly(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.all_of_with_single_ref import AllOfWithSingleRef # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestAllOfWithSingleRef(unittest.TestCase):
|
||||
"""AllOfWithSingleRef unit test stubs"""
|
||||
@ -28,25 +26,28 @@ class TestAllOfWithSingleRef(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> AllOfWithSingleRef:
|
||||
"""Test AllOfWithSingleRef
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.all_of_with_single_ref.AllOfWithSingleRef() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `AllOfWithSingleRef`
|
||||
"""
|
||||
model = AllOfWithSingleRef() # noqa: E501
|
||||
if include_optional:
|
||||
return AllOfWithSingleRef(
|
||||
username = '',
|
||||
single_ref_type = None
|
||||
username = '',
|
||||
single_ref_type = 'admin'
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return AllOfWithSingleRef(
|
||||
)
|
||||
"""
|
||||
|
||||
def testAllOfWithSingleRef(self):
|
||||
"""Test AllOfWithSingleRef"""
|
||||
inst_req_only = self.make_instance(include_optional=False)
|
||||
inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.animal import Animal # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestAnimal(unittest.TestCase):
|
||||
"""Animal unit test stubs"""
|
||||
@ -28,26 +26,29 @@ class TestAnimal(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Animal:
|
||||
"""Test Animal
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.animal.Animal() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `Animal`
|
||||
"""
|
||||
model = Animal() # noqa: E501
|
||||
if include_optional:
|
||||
return Animal(
|
||||
class_name = '',
|
||||
class_name = '',
|
||||
color = 'red'
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Animal(
|
||||
class_name = '',
|
||||
)
|
||||
"""
|
||||
|
||||
def testAnimal(self):
|
||||
"""Test Animal"""
|
||||
inst_req_only = self.make_instance(include_optional=False)
|
||||
inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
@ -3,32 +3,30 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.api.another_fake_api import AnotherFakeApi # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
|
||||
class TestAnotherFakeApi(unittest.TestCase):
|
||||
"""AnotherFakeApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = petstore_api.api.another_fake_api.AnotherFakeApi() # noqa: E501
|
||||
def setUp(self) -> None:
|
||||
self.api = AnotherFakeApi()
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
def tearDown(self) -> None:
|
||||
self.api.api_client.close()
|
||||
|
||||
def test_call_123_test_special_tags(self):
|
||||
def test_call_123_test_special_tags(self) -> None:
|
||||
"""Test case for call_123_test_special_tags
|
||||
|
||||
To test special tags # noqa: E501
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.any_of_color import AnyOfColor # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestAnyOfColor(unittest.TestCase):
|
||||
"""AnyOfColor unit test stubs"""
|
||||
@ -28,18 +26,18 @@ class TestAnyOfColor(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> AnyOfColor:
|
||||
"""Test AnyOfColor
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `AnyOfColor`
|
||||
"""
|
||||
model = petstore_api.models.any_of_color.AnyOfColor() # noqa: E501
|
||||
if include_optional :
|
||||
model = AnyOfColor() # noqa: E501
|
||||
if include_optional:
|
||||
return AnyOfColor(
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return AnyOfColor(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.any_of_pig import AnyOfPig # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestAnyOfPig(unittest.TestCase):
|
||||
"""AnyOfPig unit test stubs"""
|
||||
@ -28,6 +26,28 @@ class TestAnyOfPig(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> AnyOfPig:
|
||||
"""Test AnyOfPig
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `AnyOfPig`
|
||||
"""
|
||||
model = AnyOfPig() # noqa: E501
|
||||
if include_optional:
|
||||
return AnyOfPig(
|
||||
class_name = '',
|
||||
color = '',
|
||||
size = 56
|
||||
)
|
||||
else:
|
||||
return AnyOfPig(
|
||||
class_name = '',
|
||||
color = '',
|
||||
size = 56,
|
||||
)
|
||||
"""
|
||||
|
||||
def testAnyOfPig(self):
|
||||
"""Test AnyOfPig"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.api_response import ApiResponse # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestApiResponse(unittest.TestCase):
|
||||
"""ApiResponse unit test stubs"""
|
||||
@ -28,26 +26,29 @@ class TestApiResponse(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> ApiResponse:
|
||||
"""Test ApiResponse
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.api_response.ApiResponse() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `ApiResponse`
|
||||
"""
|
||||
model = ApiResponse() # noqa: E501
|
||||
if include_optional:
|
||||
return ApiResponse(
|
||||
code = 56,
|
||||
type = '',
|
||||
code = 56,
|
||||
type = '',
|
||||
message = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return ApiResponse(
|
||||
)
|
||||
"""
|
||||
|
||||
def testApiResponse(self):
|
||||
"""Test ApiResponse"""
|
||||
inst_req_only = self.make_instance(include_optional=False)
|
||||
inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.array_of_array_of_model import ArrayOfArrayOfModel # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestArrayOfArrayOfModel(unittest.TestCase):
|
||||
"""ArrayOfArrayOfModel unit test stubs"""
|
||||
@ -28,17 +26,17 @@ class TestArrayOfArrayOfModel(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> ArrayOfArrayOfModel:
|
||||
"""Test ArrayOfArrayOfModel
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `ArrayOfArrayOfModel`
|
||||
"""
|
||||
model = petstore_api.models.array_of_array_of_model.ArrayOfArrayOfModel() # noqa: E501
|
||||
if include_optional :
|
||||
model = ArrayOfArrayOfModel() # noqa: E501
|
||||
if include_optional:
|
||||
return ArrayOfArrayOfModel(
|
||||
shop_id_to_org_online_lip_map = [
|
||||
another_property = [
|
||||
[
|
||||
petstore_api.models.tag.Tag(
|
||||
id = 56,
|
||||
@ -46,7 +44,7 @@ class TestArrayOfArrayOfModel(unittest.TestCase):
|
||||
]
|
||||
]
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return ArrayOfArrayOfModel(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
|
||||
"""ArrayOfArrayOfNumberOnly unit test stubs"""
|
||||
@ -28,13 +26,15 @@ class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> ArrayOfArrayOfNumberOnly:
|
||||
"""Test ArrayOfArrayOfNumberOnly
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.array_of_array_of_number_only.ArrayOfArrayOfNumberOnly() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `ArrayOfArrayOfNumberOnly`
|
||||
"""
|
||||
model = ArrayOfArrayOfNumberOnly() # noqa: E501
|
||||
if include_optional:
|
||||
return ArrayOfArrayOfNumberOnly(
|
||||
array_array_number = [
|
||||
[
|
||||
@ -42,14 +42,15 @@ class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
|
||||
]
|
||||
]
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return ArrayOfArrayOfNumberOnly(
|
||||
)
|
||||
"""
|
||||
|
||||
def testArrayOfArrayOfNumberOnly(self):
|
||||
"""Test ArrayOfArrayOfNumberOnly"""
|
||||
inst_req_only = self.make_instance(include_optional=False)
|
||||
inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.array_of_number_only import ArrayOfNumberOnly # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestArrayOfNumberOnly(unittest.TestCase):
|
||||
"""ArrayOfNumberOnly unit test stubs"""
|
||||
@ -28,26 +26,29 @@ class TestArrayOfNumberOnly(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> ArrayOfNumberOnly:
|
||||
"""Test ArrayOfNumberOnly
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.array_of_number_only.ArrayOfNumberOnly() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `ArrayOfNumberOnly`
|
||||
"""
|
||||
model = ArrayOfNumberOnly() # noqa: E501
|
||||
if include_optional:
|
||||
return ArrayOfNumberOnly(
|
||||
array_number = [
|
||||
1.337
|
||||
]
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return ArrayOfNumberOnly(
|
||||
)
|
||||
"""
|
||||
|
||||
def testArrayOfNumberOnly(self):
|
||||
"""Test ArrayOfNumberOnly"""
|
||||
inst_req_only = self.make_instance(include_optional=False)
|
||||
inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.array_test import ArrayTest # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestArrayTest(unittest.TestCase):
|
||||
"""ArrayTest unit test stubs"""
|
||||
@ -28,22 +26,27 @@ class TestArrayTest(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> ArrayTest:
|
||||
"""Test ArrayTest
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.array_test.ArrayTest() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `ArrayTest`
|
||||
"""
|
||||
model = ArrayTest() # noqa: E501
|
||||
if include_optional:
|
||||
return ArrayTest(
|
||||
array_of_string = [
|
||||
''
|
||||
],
|
||||
],
|
||||
array_of_nullable_float = [
|
||||
1.337
|
||||
],
|
||||
array_array_of_integer = [
|
||||
[
|
||||
56
|
||||
]
|
||||
],
|
||||
],
|
||||
array_array_of_model = [
|
||||
[
|
||||
petstore_api.models.read_only_first.ReadOnlyFirst(
|
||||
@ -52,14 +55,15 @@ class TestArrayTest(unittest.TestCase):
|
||||
]
|
||||
]
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return ArrayTest(
|
||||
)
|
||||
"""
|
||||
|
||||
def testArrayTest(self):
|
||||
"""Test ArrayTest"""
|
||||
inst_req_only = self.make_instance(include_optional=False)
|
||||
inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.basque_pig import BasquePig # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestBasquePig(unittest.TestCase):
|
||||
"""BasquePig unit test stubs"""
|
||||
@ -28,27 +26,30 @@ class TestBasquePig(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> BasquePig:
|
||||
"""Test BasquePig
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.basque_pig.BasquePig() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `BasquePig`
|
||||
"""
|
||||
model = BasquePig() # noqa: E501
|
||||
if include_optional:
|
||||
return BasquePig(
|
||||
class_name = '',
|
||||
class_name = '',
|
||||
color = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return BasquePig(
|
||||
class_name = '',
|
||||
color = '',
|
||||
)
|
||||
"""
|
||||
|
||||
def testBasquePig(self):
|
||||
"""Test BasquePig"""
|
||||
#inst_req_only = self.make_instance(include_optional=False)
|
||||
#inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.capitalization import Capitalization # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestCapitalization(unittest.TestCase):
|
||||
"""Capitalization unit test stubs"""
|
||||
@ -28,29 +26,32 @@ class TestCapitalization(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Capitalization:
|
||||
"""Test Capitalization
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.capitalization.Capitalization() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `Capitalization`
|
||||
"""
|
||||
model = Capitalization() # noqa: E501
|
||||
if include_optional:
|
||||
return Capitalization(
|
||||
small_camel = '',
|
||||
capital_camel = '',
|
||||
small_snake = '',
|
||||
capital_snake = '',
|
||||
sca_eth_flow_points = '',
|
||||
small_camel = '',
|
||||
capital_camel = '',
|
||||
small_snake = '',
|
||||
capital_snake = '',
|
||||
sca_eth_flow_points = '',
|
||||
att_name = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Capitalization(
|
||||
)
|
||||
"""
|
||||
|
||||
def testCapitalization(self):
|
||||
"""Test Capitalization"""
|
||||
inst_req_only = self.make_instance(include_optional=False)
|
||||
inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.cat import Cat # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestCat(unittest.TestCase):
|
||||
"""Cat unit test stubs"""
|
||||
@ -28,6 +26,23 @@ class TestCat(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> Cat:
|
||||
"""Test Cat
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `Cat`
|
||||
"""
|
||||
model = Cat() # noqa: E501
|
||||
if include_optional:
|
||||
return Cat(
|
||||
declawed = True
|
||||
)
|
||||
else:
|
||||
return Cat(
|
||||
)
|
||||
"""
|
||||
|
||||
def testCat(self):
|
||||
"""Test Cat"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.category import Category # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestCategory(unittest.TestCase):
|
||||
"""Category unit test stubs"""
|
||||
@ -28,21 +26,24 @@ class TestCategory(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Category:
|
||||
"""Test Category
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.category.Category() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `Category`
|
||||
"""
|
||||
model = Category() # noqa: E501
|
||||
if include_optional:
|
||||
return Category(
|
||||
id = 56,
|
||||
id = 56,
|
||||
name = 'default-name'
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Category(
|
||||
name = 'default-name',
|
||||
)
|
||||
"""
|
||||
|
||||
def testCategory(self):
|
||||
"""Test Category"""
|
||||
|
@ -36,16 +36,10 @@ class TestCircularAllOfRef(unittest.TestCase):
|
||||
model = CircularAllOfRef() # noqa: E501
|
||||
if include_optional:
|
||||
return CircularAllOfRef(
|
||||
name = '',
|
||||
second_circular_all_of_ref = [
|
||||
petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef(
|
||||
circular_all_of_ref = [
|
||||
petstore_api.models.circular_all_of_ref.CircularAllOfRef(
|
||||
second_circular_all_of_ref = [
|
||||
petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef()
|
||||
], )
|
||||
], )
|
||||
],
|
||||
name = ''
|
||||
petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef()
|
||||
]
|
||||
)
|
||||
else:
|
||||
return CircularAllOfRef(
|
||||
|
@ -3,23 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.circular_reference_model import CircularReferenceModel # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestCircularReferenceModel(unittest.TestCase):
|
||||
"""CircularReferenceModel unit test stubs"""
|
||||
@ -30,17 +26,17 @@ class TestCircularReferenceModel(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> CircularReferenceModel:
|
||||
"""Test CircularReferenceModel
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `CircularReferenceModel`
|
||||
"""
|
||||
model = petstore_api.models.circular_reference_model.CircularReferenceModel() # noqa: E501
|
||||
if include_optional :
|
||||
model = CircularReferenceModel() # noqa: E501
|
||||
if include_optional:
|
||||
return CircularReferenceModel(
|
||||
size = 56,
|
||||
size = 56,
|
||||
nested = petstore_api.models.first_ref.FirstRef(
|
||||
category = '',
|
||||
self_ref = petstore_api.models.second_ref.SecondRef(
|
||||
@ -50,7 +46,7 @@ class TestCircularReferenceModel(unittest.TestCase):
|
||||
nested = petstore_api.models.first_ref.FirstRef(
|
||||
category = '', ), ), ), )
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return CircularReferenceModel(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.class_model import ClassModel # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestClassModel(unittest.TestCase):
|
||||
"""ClassModel unit test stubs"""
|
||||
@ -28,24 +26,27 @@ class TestClassModel(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> ClassModel:
|
||||
"""Test ClassModel
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.class_model.ClassModel() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `ClassModel`
|
||||
"""
|
||||
model = ClassModel() # noqa: E501
|
||||
if include_optional:
|
||||
return ClassModel(
|
||||
_class = ''
|
||||
var_class = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return ClassModel(
|
||||
)
|
||||
"""
|
||||
|
||||
def testClassModel(self):
|
||||
"""Test ClassModel"""
|
||||
inst_req_only = self.make_instance(include_optional=False)
|
||||
inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.client import Client # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestClient(unittest.TestCase):
|
||||
"""Client unit test stubs"""
|
||||
@ -28,24 +26,27 @@ class TestClient(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Client:
|
||||
"""Test Client
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.client.Client() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `Client`
|
||||
"""
|
||||
model = Client() # noqa: E501
|
||||
if include_optional:
|
||||
return Client(
|
||||
client = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Client(
|
||||
)
|
||||
"""
|
||||
|
||||
def testClient(self):
|
||||
"""Test Client"""
|
||||
inst_req_only = self.make_instance(include_optional=False)
|
||||
inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.color import Color # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestColor(unittest.TestCase):
|
||||
"""Color unit test stubs"""
|
||||
@ -28,18 +26,18 @@ class TestColor(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Color:
|
||||
"""Test Color
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `Color`
|
||||
"""
|
||||
model = petstore_api.models.color.Color() # noqa: E501
|
||||
if include_optional :
|
||||
model = Color() # noqa: E501
|
||||
if include_optional:
|
||||
return Color(
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Color(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,19 @@
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.creature import Creature # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
class TestCreature(unittest.TestCase):
|
||||
"""Creature unit test stubs"""
|
||||
@ -28,21 +26,21 @@ class TestCreature(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Creature:
|
||||
"""Test Creature
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `Creature`
|
||||
"""
|
||||
model = petstore_api.models.creature.Creature() # noqa: E501
|
||||
if include_optional :
|
||||
model = Creature() # noqa: E501
|
||||
if include_optional:
|
||||
return Creature(
|
||||
info = petstore_api.models.creature_info.CreatureInfo(
|
||||
name = '', ),
|
||||
name = '', ),
|
||||
type = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Creature(
|
||||
info = petstore_api.models.creature_info.CreatureInfo(
|
||||
name = '', ),
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user