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}}()
|
self.api = {{classname}}()
|
||||||
|
|
||||||
async def asyncTearDown(self) -> None:
|
async def asyncTearDown(self) -> None:
|
||||||
pass
|
await self.api.api_client.close()
|
||||||
{{/asyncio}}
|
{{/asyncio}}
|
||||||
{{^asyncio}}
|
{{^asyncio}}
|
||||||
def setUp(self) -> None:
|
def setUp(self) -> None:
|
||||||
self.api = {{classname}}()
|
self.api = {{classname}}()
|
||||||
|
|
||||||
def tearDown(self) -> None:
|
def tearDown(self) -> None:
|
||||||
pass
|
self.api.api_client.close()
|
||||||
{{/asyncio}}
|
{{/asyncio}}
|
||||||
|
|
||||||
{{#operation}}
|
{{#operation}}
|
||||||
|
@ -15,7 +15,7 @@ class {{#operations}}Test{{classname}}(unittest.{{#asyncio}}IsolatedAsyncio{{/as
|
|||||||
self.api = {{classname}}()
|
self.api = {{classname}}()
|
||||||
|
|
||||||
async def asyncTearDown(self) -> None:
|
async def asyncTearDown(self) -> None:
|
||||||
pass
|
await self.api.api_client.close()
|
||||||
{{/asyncio}}
|
{{/asyncio}}
|
||||||
{{^asyncio}}
|
{{^asyncio}}
|
||||||
def setUp(self) -> None:
|
def setUp(self) -> None:
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from openapi_client.api.auth_api import AuthApi # noqa: E501
|
from openapi_client.api.auth_api import AuthApi
|
||||||
|
|
||||||
|
|
||||||
class TestAuthApi(unittest.TestCase):
|
class TestAuthApi(unittest.TestCase):
|
||||||
"""AuthApi unit test stubs"""
|
"""AuthApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self) -> None:
|
def setUp(self) -> None:
|
||||||
self.api = AuthApi() # noqa: E501
|
self.api = AuthApi()
|
||||||
|
|
||||||
def tearDown(self) -> None:
|
def tearDown(self) -> None:
|
||||||
pass
|
pass
|
||||||
@ -30,7 +30,14 @@ class TestAuthApi(unittest.TestCase):
|
|||||||
def test_test_auth_http_basic(self) -> None:
|
def test_test_auth_http_basic(self) -> None:
|
||||||
"""Test case for test_auth_http_basic
|
"""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
|
pass
|
||||||
|
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.bird import Bird
|
||||||
from openapi_client.models.bird import Bird # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestBird(unittest.TestCase):
|
class TestBird(unittest.TestCase):
|
||||||
"""Bird unit test stubs"""
|
"""Bird unit test stubs"""
|
||||||
@ -29,20 +26,20 @@ class TestBird(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Bird:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `Bird`
|
# uncomment below to create an instance of `Bird`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.bird.Bird() # noqa: E501
|
model = Bird()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return Bird(
|
return Bird(
|
||||||
size = '',
|
size = '',
|
||||||
color = ''
|
color = ''
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Bird(
|
return Bird(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,36 +3,97 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.api.body_api import BodyApi
|
||||||
from openapi_client.api.body_api import BodyApi # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
|
|
||||||
class TestBodyApi(unittest.TestCase):
|
class TestBodyApi(unittest.TestCase):
|
||||||
"""BodyApi unit test stubs"""
|
"""BodyApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self) -> None:
|
||||||
self.api = openapi_client.api.body_api.BodyApi() # noqa: E501
|
self.api = BodyApi()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self) -> None:
|
||||||
pass
|
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 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
|
pass
|
||||||
|
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.category import Category
|
||||||
from openapi_client.models.category import Category # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestCategory(unittest.TestCase):
|
class TestCategory(unittest.TestCase):
|
||||||
"""Category unit test stubs"""
|
"""Category unit test stubs"""
|
||||||
@ -29,20 +26,20 @@ class TestCategory(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Category:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `Category`
|
# uncomment below to create an instance of `Category`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.category.Category() # noqa: E501
|
model = Category()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return Category(
|
return Category(
|
||||||
id = 1,
|
id = 1,
|
||||||
name = 'Dogs'
|
name = 'Dogs'
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Category(
|
return Category(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.data_query import DataQuery
|
||||||
from openapi_client.models.data_query import DataQuery # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestDataQuery(unittest.TestCase):
|
class TestDataQuery(unittest.TestCase):
|
||||||
"""DataQuery unit test stubs"""
|
"""DataQuery unit test stubs"""
|
||||||
@ -29,21 +26,21 @@ class TestDataQuery(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> DataQuery:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `DataQuery`
|
# uncomment below to create an instance of `DataQuery`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.data_query.DataQuery() # noqa: E501
|
model = DataQuery()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return DataQuery(
|
return DataQuery(
|
||||||
suffix = '',
|
suffix = '',
|
||||||
text = 'Some text',
|
text = 'Some text',
|
||||||
var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
|
var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return DataQuery(
|
return DataQuery(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.default_value import DefaultValue
|
||||||
from openapi_client.models.default_value import DefaultValue # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestDefaultValue(unittest.TestCase):
|
class TestDefaultValue(unittest.TestCase):
|
||||||
"""DefaultValue unit test stubs"""
|
"""DefaultValue unit test stubs"""
|
||||||
@ -29,34 +26,40 @@ class TestDefaultValue(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> DefaultValue:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `DefaultValue`
|
# uncomment below to create an instance of `DefaultValue`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.default_value.DefaultValue() # noqa: E501
|
model = DefaultValue()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return DefaultValue(
|
return DefaultValue(
|
||||||
|
array_string_enum_ref_default = [
|
||||||
|
'success'
|
||||||
|
],
|
||||||
array_string_enum_default = [
|
array_string_enum_default = [
|
||||||
'success'
|
'success'
|
||||||
],
|
],
|
||||||
array_string_default = [
|
array_string_default = [
|
||||||
''
|
''
|
||||||
],
|
],
|
||||||
array_integer_default = [
|
array_integer_default = [
|
||||||
56
|
56
|
||||||
],
|
],
|
||||||
array_string = [
|
array_string = [
|
||||||
''
|
''
|
||||||
],
|
],
|
||||||
array_string_nullable = [
|
array_string_nullable = [
|
||||||
''
|
''
|
||||||
],
|
],
|
||||||
|
array_string_extension_nullable = [
|
||||||
|
''
|
||||||
|
],
|
||||||
string_nullable = ''
|
string_nullable = ''
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return DefaultValue(
|
return DefaultValue(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,36 +3,48 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.api.form_api import FormApi
|
||||||
from openapi_client.api.form_api import FormApi # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
|
|
||||||
class TestFormApi(unittest.TestCase):
|
class TestFormApi(unittest.TestCase):
|
||||||
"""FormApi unit test stubs"""
|
"""FormApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self) -> None:
|
||||||
self.api = openapi_client.api.form_api.FormApi() # noqa: E501
|
self.api = FormApi()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self) -> None:
|
||||||
pass
|
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 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
|
pass
|
||||||
|
|
||||||
|
@ -3,36 +3,34 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.api.header_api import HeaderApi
|
||||||
from openapi_client.api.header_api import HeaderApi # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
|
|
||||||
class TestHeaderApi(unittest.TestCase):
|
class TestHeaderApi(unittest.TestCase):
|
||||||
"""HeaderApi unit test stubs"""
|
"""HeaderApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self) -> None:
|
||||||
self.api = openapi_client.api.header_api.HeaderApi() # noqa: E501
|
self.api = HeaderApi()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self) -> None:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def test_test_header_integer_boolean_string(self):
|
def test_test_header_integer_boolean_string_enums(self) -> None:
|
||||||
"""Test case for test_header_integer_boolean_string
|
"""Test case for test_header_integer_boolean_string_enums
|
||||||
|
|
||||||
Test header parameter(s) # noqa: E501
|
Test header parameter(s)
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
Contact: team@openapitools.org
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.number_properties_only import NumberPropertiesOnly
|
||||||
from openapi_client.models.number_properties_only import NumberPropertiesOnly # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestNumberPropertiesOnly(unittest.TestCase):
|
class TestNumberPropertiesOnly(unittest.TestCase):
|
||||||
"""NumberPropertiesOnly unit test stubs"""
|
"""NumberPropertiesOnly unit test stubs"""
|
||||||
@ -29,21 +26,21 @@ class TestNumberPropertiesOnly(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> NumberPropertiesOnly:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `NumberPropertiesOnly`
|
# uncomment below to create an instance of `NumberPropertiesOnly`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.number_properties_only.NumberPropertiesOnly() # noqa: E501
|
model = NumberPropertiesOnly()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return NumberPropertiesOnly(
|
return NumberPropertiesOnly(
|
||||||
number = 1.337,
|
number = 1.337,
|
||||||
float = 1.337,
|
var_float = 1.337,
|
||||||
double = ''
|
double = 0.8
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return NumberPropertiesOnly(
|
return NumberPropertiesOnly(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,36 +3,34 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.api.path_api import PathApi
|
||||||
from openapi_client.api.path_api import PathApi # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
|
|
||||||
class TestPathApi(unittest.TestCase):
|
class TestPathApi(unittest.TestCase):
|
||||||
"""PathApi unit test stubs"""
|
"""PathApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self) -> None:
|
||||||
self.api = openapi_client.api.path_api.PathApi() # noqa: E501
|
self.api = PathApi()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self) -> None:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def test_tests_path_string_path_string_integer_path_integer(self):
|
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
|
"""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
|
pass
|
||||||
|
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.pet import Pet
|
||||||
from openapi_client.models.pet import Pet # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestPet(unittest.TestCase):
|
class TestPet(unittest.TestCase):
|
||||||
"""Pet unit test stubs"""
|
"""Pet unit test stubs"""
|
||||||
@ -29,32 +26,32 @@ class TestPet(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Pet:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `Pet`
|
# uncomment below to create an instance of `Pet`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.pet.Pet() # noqa: E501
|
model = Pet()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return Pet(
|
return Pet(
|
||||||
id = 10,
|
id = 10,
|
||||||
name = 'doggie',
|
name = 'doggie',
|
||||||
category = openapi_client.models.category.Category(
|
category = openapi_client.models.category.Category(
|
||||||
id = 1,
|
id = 1,
|
||||||
name = 'Dogs', ),
|
name = 'Dogs', ),
|
||||||
photo_urls = [
|
photo_urls = [
|
||||||
''
|
''
|
||||||
],
|
],
|
||||||
tags = [
|
tags = [
|
||||||
openapi_client.models.tag.Tag(
|
openapi_client.models.tag.Tag(
|
||||||
id = 56,
|
id = 56,
|
||||||
name = '', )
|
name = '', )
|
||||||
],
|
],
|
||||||
status = 'available'
|
status = 'available'
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Pet(
|
return Pet(
|
||||||
name = 'doggie',
|
name = 'doggie',
|
||||||
photo_urls = [
|
photo_urls = [
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.query import Query
|
||||||
from openapi_client.models.query import Query # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestQuery(unittest.TestCase):
|
class TestQuery(unittest.TestCase):
|
||||||
"""Query unit test stubs"""
|
"""Query unit test stubs"""
|
||||||
@ -29,22 +26,22 @@ class TestQuery(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Query:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `Query`
|
# uncomment below to create an instance of `Query`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.query.Query() # noqa: E501
|
model = Query()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return Query(
|
return Query(
|
||||||
id = 56,
|
id = 56,
|
||||||
outcomes = [
|
outcomes = [
|
||||||
'SUCCESS'
|
'SUCCESS'
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Query(
|
return Query(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,50 +3,97 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.api.query_api import QueryApi
|
||||||
from openapi_client.api.query_api import QueryApi # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
|
|
||||||
class TestQueryApi(unittest.TestCase):
|
class TestQueryApi(unittest.TestCase):
|
||||||
"""QueryApi unit test stubs"""
|
"""QueryApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self) -> None:
|
||||||
self.api = openapi_client.api.query_api.QueryApi() # noqa: E501
|
self.api = QueryApi()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self) -> None:
|
||||||
pass
|
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 case for test_query_integer_boolean_string
|
||||||
|
|
||||||
Test query parameter(s) # noqa: E501
|
Test query parameter(s)
|
||||||
"""
|
"""
|
||||||
pass
|
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 case for test_query_style_form_explode_true_array_string
|
||||||
|
|
||||||
Test query parameter(s) # noqa: E501
|
Test query parameter(s)
|
||||||
"""
|
"""
|
||||||
pass
|
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 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
|
pass
|
||||||
|
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.string_enum_ref import StringEnumRef
|
||||||
from openapi_client.models.string_enum_ref import StringEnumRef # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestStringEnumRef(unittest.TestCase):
|
class TestStringEnumRef(unittest.TestCase):
|
||||||
"""StringEnumRef unit test stubs"""
|
"""StringEnumRef unit test stubs"""
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.tag import Tag
|
||||||
from openapi_client.models.tag import Tag # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestTag(unittest.TestCase):
|
class TestTag(unittest.TestCase):
|
||||||
"""Tag unit test stubs"""
|
"""Tag unit test stubs"""
|
||||||
@ -29,20 +26,20 @@ class TestTag(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Tag:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `Tag`
|
# uncomment below to create an instance of `Tag`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.tag.Tag() # noqa: E501
|
model = Tag()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return Tag(
|
return Tag(
|
||||||
id = 56,
|
id = 56,
|
||||||
name = ''
|
name = ''
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Tag(
|
return Tag(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -28,7 +28,7 @@ class TestTestFormObjectMultipartRequestMarker(unittest.TestCase):
|
|||||||
|
|
||||||
def make_instance(self, include_optional) -> TestFormObjectMultipartRequestMarker:
|
def make_instance(self, include_optional) -> TestFormObjectMultipartRequestMarker:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `TestFormObjectMultipartRequestMarker`
|
# uncomment below to create an instance of `TestFormObjectMultipartRequestMarker`
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 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
|
||||||
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):
|
class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(unittest.TestCase):
|
||||||
"""TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter unit test stubs"""
|
"""TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter unit test stubs"""
|
||||||
@ -29,22 +26,22 @@ class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(uni
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter`
|
# 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
|
model = TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(
|
return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(
|
||||||
size = '',
|
size = '',
|
||||||
color = '',
|
color = '',
|
||||||
id = 1,
|
id = 1,
|
||||||
name = 'Dogs'
|
name = 'Dogs'
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(
|
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
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
|
||||||
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):
|
class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.TestCase):
|
||||||
"""TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter unit test stubs"""
|
"""TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter unit test stubs"""
|
||||||
@ -29,21 +26,21 @@ class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter`
|
# 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
|
model = TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
|
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
|
||||||
values = [
|
values = [
|
||||||
''
|
''
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
|
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -22,10 +22,10 @@ class TestAuthApi(unittest.TestCase):
|
|||||||
"""AuthApi unit test stubs"""
|
"""AuthApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self) -> None:
|
def setUp(self) -> None:
|
||||||
self.api = AuthApi() # noqa: E501
|
self.api = AuthApi()
|
||||||
|
|
||||||
def tearDown(self) -> None:
|
def tearDown(self) -> None:
|
||||||
pass
|
self.api.api_client.close()
|
||||||
|
|
||||||
def test_test_auth_http_basic(self) -> None:
|
def test_test_auth_http_basic(self) -> None:
|
||||||
"""Test case for test_auth_http_basic
|
"""Test case for test_auth_http_basic
|
||||||
@ -34,6 +34,13 @@ class TestAuthApi(unittest.TestCase):
|
|||||||
"""
|
"""
|
||||||
pass
|
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__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
@ -3,22 +3,20 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import openapi_client
|
|
||||||
from openapi_client.models.bird import Bird # noqa: E501
|
from openapi_client.models.bird import Bird # noqa: E501
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestBird(unittest.TestCase):
|
class TestBird(unittest.TestCase):
|
||||||
"""Bird unit test stubs"""
|
"""Bird unit test stubs"""
|
||||||
@ -29,20 +27,20 @@ class TestBird(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Bird:
|
||||||
"""Test Bird
|
"""Test Bird
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `Bird`
|
# uncomment below to create an instance of `Bird`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.bird.Bird() # noqa: E501
|
model = Bird() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return Bird(
|
return Bird(
|
||||||
size = '',
|
size = '',
|
||||||
color = ''
|
color = ''
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Bird(
|
return Bird(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,39 +3,100 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
|
|
||||||
import openapi_client
|
|
||||||
from openapi_client.api.body_api import BodyApi # noqa: E501
|
from openapi_client.api.body_api import BodyApi # noqa: E501
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
|
|
||||||
class TestBodyApi(unittest.TestCase):
|
class TestBodyApi(unittest.TestCase):
|
||||||
"""BodyApi unit test stubs"""
|
"""BodyApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self) -> None:
|
||||||
self.api = openapi_client.api.body_api.BodyApi() # noqa: E501
|
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
|
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 case for test_echo_body_pet
|
||||||
|
|
||||||
Test body parameter(s) # noqa: E501
|
Test body parameter(s) # noqa: E501
|
||||||
"""
|
"""
|
||||||
pass
|
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__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
@ -3,22 +3,20 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import openapi_client
|
|
||||||
from openapi_client.models.category import Category # noqa: E501
|
from openapi_client.models.category import Category # noqa: E501
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestCategory(unittest.TestCase):
|
class TestCategory(unittest.TestCase):
|
||||||
"""Category unit test stubs"""
|
"""Category unit test stubs"""
|
||||||
@ -29,20 +27,20 @@ class TestCategory(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Category:
|
||||||
"""Test Category
|
"""Test Category
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `Category`
|
# uncomment below to create an instance of `Category`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.category.Category() # noqa: E501
|
model = Category() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return Category(
|
return Category(
|
||||||
id = 1,
|
id = 1,
|
||||||
name = 'Dogs'
|
name = 'Dogs'
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Category(
|
return Category(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,22 +3,20 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import openapi_client
|
|
||||||
from openapi_client.models.data_query import DataQuery # noqa: E501
|
from openapi_client.models.data_query import DataQuery # noqa: E501
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestDataQuery(unittest.TestCase):
|
class TestDataQuery(unittest.TestCase):
|
||||||
"""DataQuery unit test stubs"""
|
"""DataQuery unit test stubs"""
|
||||||
@ -29,21 +27,21 @@ class TestDataQuery(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> DataQuery:
|
||||||
"""Test DataQuery
|
"""Test DataQuery
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `DataQuery`
|
# uncomment below to create an instance of `DataQuery`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.data_query.DataQuery() # noqa: E501
|
model = DataQuery() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return DataQuery(
|
return DataQuery(
|
||||||
suffix = '',
|
suffix = '',
|
||||||
text = 'Some text',
|
text = 'Some text',
|
||||||
var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
|
var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return DataQuery(
|
return DataQuery(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,22 +3,20 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import openapi_client
|
|
||||||
from openapi_client.models.default_value import DefaultValue # noqa: E501
|
from openapi_client.models.default_value import DefaultValue # noqa: E501
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestDefaultValue(unittest.TestCase):
|
class TestDefaultValue(unittest.TestCase):
|
||||||
"""DefaultValue unit test stubs"""
|
"""DefaultValue unit test stubs"""
|
||||||
@ -29,34 +27,40 @@ class TestDefaultValue(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> DefaultValue:
|
||||||
"""Test DefaultValue
|
"""Test DefaultValue
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `DefaultValue`
|
# uncomment below to create an instance of `DefaultValue`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.default_value.DefaultValue() # noqa: E501
|
model = DefaultValue() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return DefaultValue(
|
return DefaultValue(
|
||||||
|
array_string_enum_ref_default = [
|
||||||
|
'success'
|
||||||
|
],
|
||||||
array_string_enum_default = [
|
array_string_enum_default = [
|
||||||
'success'
|
'success'
|
||||||
],
|
],
|
||||||
array_string_default = [
|
array_string_default = [
|
||||||
''
|
''
|
||||||
],
|
],
|
||||||
array_integer_default = [
|
array_integer_default = [
|
||||||
56
|
56
|
||||||
],
|
],
|
||||||
array_string = [
|
array_string = [
|
||||||
''
|
''
|
||||||
],
|
],
|
||||||
array_string_nullable = [
|
array_string_nullable = [
|
||||||
''
|
''
|
||||||
],
|
],
|
||||||
|
array_string_extension_nullable = [
|
||||||
|
''
|
||||||
|
],
|
||||||
string_nullable = ''
|
string_nullable = ''
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return DefaultValue(
|
return DefaultValue(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,39 +3,51 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
|
|
||||||
import openapi_client
|
|
||||||
from openapi_client.api.form_api import FormApi # noqa: E501
|
from openapi_client.api.form_api import FormApi # noqa: E501
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
|
|
||||||
class TestFormApi(unittest.TestCase):
|
class TestFormApi(unittest.TestCase):
|
||||||
"""FormApi unit test stubs"""
|
"""FormApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self) -> None:
|
||||||
self.api = openapi_client.api.form_api.FormApi() # noqa: E501
|
self.api = FormApi()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self) -> None:
|
||||||
pass
|
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 case for test_form_integer_boolean_string
|
||||||
|
|
||||||
Test form parameter(s) # noqa: E501
|
Test form parameter(s) # noqa: E501
|
||||||
"""
|
"""
|
||||||
pass
|
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__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
@ -3,34 +3,32 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
|
|
||||||
import openapi_client
|
|
||||||
from openapi_client.api.header_api import HeaderApi # noqa: E501
|
from openapi_client.api.header_api import HeaderApi # noqa: E501
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
|
|
||||||
class TestHeaderApi(unittest.TestCase):
|
class TestHeaderApi(unittest.TestCase):
|
||||||
"""HeaderApi unit test stubs"""
|
"""HeaderApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self) -> None:
|
||||||
self.api = openapi_client.api.header_api.HeaderApi() # noqa: E501
|
self.api = HeaderApi()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self) -> None:
|
||||||
pass
|
self.api.api_client.close()
|
||||||
|
|
||||||
def test_test_header_integer_boolean_string(self):
|
def test_test_header_integer_boolean_string_enums(self) -> None:
|
||||||
"""Test case for test_header_integer_boolean_string
|
"""Test case for test_header_integer_boolean_string_enums
|
||||||
|
|
||||||
Test header parameter(s) # noqa: E501
|
Test header parameter(s) # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
@ -3,22 +3,20 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
Contact: team@openapitools.org
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import openapi_client
|
|
||||||
from openapi_client.models.number_properties_only import NumberPropertiesOnly # noqa: E501
|
from openapi_client.models.number_properties_only import NumberPropertiesOnly # noqa: E501
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestNumberPropertiesOnly(unittest.TestCase):
|
class TestNumberPropertiesOnly(unittest.TestCase):
|
||||||
"""NumberPropertiesOnly unit test stubs"""
|
"""NumberPropertiesOnly unit test stubs"""
|
||||||
@ -29,21 +27,21 @@ class TestNumberPropertiesOnly(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> NumberPropertiesOnly:
|
||||||
"""Test NumberPropertiesOnly
|
"""Test NumberPropertiesOnly
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `NumberPropertiesOnly`
|
# uncomment below to create an instance of `NumberPropertiesOnly`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.number_properties_only.NumberPropertiesOnly() # noqa: E501
|
model = NumberPropertiesOnly() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return NumberPropertiesOnly(
|
return NumberPropertiesOnly(
|
||||||
number = 1.337,
|
number = 1.337,
|
||||||
float = 1.337,
|
float = 1.337,
|
||||||
double = ''
|
double = 0.8
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return NumberPropertiesOnly(
|
return NumberPropertiesOnly(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,34 +3,32 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
|
|
||||||
import openapi_client
|
|
||||||
from openapi_client.api.path_api import PathApi # noqa: E501
|
from openapi_client.api.path_api import PathApi # noqa: E501
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
|
|
||||||
class TestPathApi(unittest.TestCase):
|
class TestPathApi(unittest.TestCase):
|
||||||
"""PathApi unit test stubs"""
|
"""PathApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self) -> None:
|
||||||
self.api = openapi_client.api.path_api.PathApi() # noqa: E501
|
self.api = PathApi()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self) -> None:
|
||||||
pass
|
self.api.api_client.close()
|
||||||
|
|
||||||
def test_tests_path_string_path_string_integer_path_integer(self):
|
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
|
"""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) # noqa: E501
|
||||||
"""
|
"""
|
||||||
|
@ -3,22 +3,20 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import openapi_client
|
|
||||||
from openapi_client.models.pet import Pet # noqa: E501
|
from openapi_client.models.pet import Pet # noqa: E501
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestPet(unittest.TestCase):
|
class TestPet(unittest.TestCase):
|
||||||
"""Pet unit test stubs"""
|
"""Pet unit test stubs"""
|
||||||
@ -29,32 +27,32 @@ class TestPet(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Pet:
|
||||||
"""Test Pet
|
"""Test Pet
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `Pet`
|
# uncomment below to create an instance of `Pet`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.pet.Pet() # noqa: E501
|
model = Pet() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return Pet(
|
return Pet(
|
||||||
id = 10,
|
id = 10,
|
||||||
name = 'doggie',
|
name = 'doggie',
|
||||||
category = openapi_client.models.category.Category(
|
category = openapi_client.models.category.Category(
|
||||||
id = 1,
|
id = 1,
|
||||||
name = 'Dogs', ),
|
name = 'Dogs', ),
|
||||||
photo_urls = [
|
photo_urls = [
|
||||||
''
|
''
|
||||||
],
|
],
|
||||||
tags = [
|
tags = [
|
||||||
openapi_client.models.tag.Tag(
|
openapi_client.models.tag.Tag(
|
||||||
id = 56,
|
id = 56,
|
||||||
name = '', )
|
name = '', )
|
||||||
],
|
],
|
||||||
status = 'available'
|
status = 'available'
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Pet(
|
return Pet(
|
||||||
name = 'doggie',
|
name = 'doggie',
|
||||||
photo_urls = [
|
photo_urls = [
|
||||||
|
@ -3,22 +3,20 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import openapi_client
|
|
||||||
from openapi_client.models.query import Query # noqa: E501
|
from openapi_client.models.query import Query # noqa: E501
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestQuery(unittest.TestCase):
|
class TestQuery(unittest.TestCase):
|
||||||
"""Query unit test stubs"""
|
"""Query unit test stubs"""
|
||||||
@ -29,22 +27,22 @@ class TestQuery(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Query:
|
||||||
"""Test Query
|
"""Test Query
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `Query`
|
# uncomment below to create an instance of `Query`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.query.Query() # noqa: E501
|
model = Query() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return Query(
|
return Query(
|
||||||
id = 56,
|
id = 56,
|
||||||
outcomes = [
|
outcomes = [
|
||||||
'SUCCESS'
|
'SUCCESS'
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Query(
|
return Query(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,53 +3,100 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
|
|
||||||
import openapi_client
|
|
||||||
from openapi_client.api.query_api import QueryApi # noqa: E501
|
from openapi_client.api.query_api import QueryApi # noqa: E501
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
|
|
||||||
class TestQueryApi(unittest.TestCase):
|
class TestQueryApi(unittest.TestCase):
|
||||||
"""QueryApi unit test stubs"""
|
"""QueryApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self) -> None:
|
||||||
self.api = openapi_client.api.query_api.QueryApi() # noqa: E501
|
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
|
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 case for test_query_integer_boolean_string
|
||||||
|
|
||||||
Test query parameter(s) # noqa: E501
|
Test query parameter(s) # noqa: E501
|
||||||
"""
|
"""
|
||||||
pass
|
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 case for test_query_style_form_explode_true_array_string
|
||||||
|
|
||||||
Test query parameter(s) # noqa: E501
|
Test query parameter(s) # noqa: E501
|
||||||
"""
|
"""
|
||||||
pass
|
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 case for test_query_style_form_explode_true_object
|
||||||
|
|
||||||
Test query parameter(s) # noqa: E501
|
Test query parameter(s) # noqa: E501
|
||||||
"""
|
"""
|
||||||
pass
|
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__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
@ -3,22 +3,20 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import openapi_client
|
|
||||||
from openapi_client.models.string_enum_ref import StringEnumRef # noqa: E501
|
from openapi_client.models.string_enum_ref import StringEnumRef # noqa: E501
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestStringEnumRef(unittest.TestCase):
|
class TestStringEnumRef(unittest.TestCase):
|
||||||
"""StringEnumRef unit test stubs"""
|
"""StringEnumRef unit test stubs"""
|
||||||
|
@ -3,22 +3,20 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import openapi_client
|
|
||||||
from openapi_client.models.tag import Tag # noqa: E501
|
from openapi_client.models.tag import Tag # noqa: E501
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestTag(unittest.TestCase):
|
class TestTag(unittest.TestCase):
|
||||||
"""Tag unit test stubs"""
|
"""Tag unit test stubs"""
|
||||||
@ -29,20 +27,20 @@ class TestTag(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Tag:
|
||||||
"""Test Tag
|
"""Test Tag
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `Tag`
|
# uncomment below to create an instance of `Tag`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.tag.Tag() # noqa: E501
|
model = Tag() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return Tag(
|
return Tag(
|
||||||
id = 56,
|
id = 56,
|
||||||
name = ''
|
name = ''
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Tag(
|
return Tag(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,22 +3,20 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
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.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):
|
class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(unittest.TestCase):
|
||||||
"""TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter unit test stubs"""
|
"""TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter unit test stubs"""
|
||||||
@ -29,22 +27,22 @@ class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(uni
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter:
|
||||||
"""Test TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
"""Test TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter`
|
# 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
|
model = TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(
|
return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(
|
||||||
size = '',
|
size = '',
|
||||||
color = '',
|
color = '',
|
||||||
id = 1,
|
id = 1,
|
||||||
name = 'Dogs'
|
name = 'Dogs'
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(
|
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
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
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.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):
|
class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.TestCase):
|
||||||
"""TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter unit test stubs"""
|
"""TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter unit test stubs"""
|
||||||
@ -29,21 +27,21 @@ class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter:
|
||||||
"""Test TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
|
"""Test TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter`
|
# 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
|
model = TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
|
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
|
||||||
values = [
|
values = [
|
||||||
''
|
''
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
|
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -15,14 +15,14 @@
|
|||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from openapi_client.api.auth_api import AuthApi # noqa: E501
|
from openapi_client.api.auth_api import AuthApi
|
||||||
|
|
||||||
|
|
||||||
class TestAuthApi(unittest.TestCase):
|
class TestAuthApi(unittest.TestCase):
|
||||||
"""AuthApi unit test stubs"""
|
"""AuthApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self) -> None:
|
def setUp(self) -> None:
|
||||||
self.api = AuthApi() # noqa: E501
|
self.api = AuthApi()
|
||||||
|
|
||||||
def tearDown(self) -> None:
|
def tearDown(self) -> None:
|
||||||
pass
|
pass
|
||||||
@ -30,7 +30,14 @@ class TestAuthApi(unittest.TestCase):
|
|||||||
def test_test_auth_http_basic(self) -> None:
|
def test_test_auth_http_basic(self) -> None:
|
||||||
"""Test case for test_auth_http_basic
|
"""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
|
pass
|
||||||
|
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.bird import Bird
|
||||||
from openapi_client.models.bird import Bird # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestBird(unittest.TestCase):
|
class TestBird(unittest.TestCase):
|
||||||
"""Bird unit test stubs"""
|
"""Bird unit test stubs"""
|
||||||
@ -29,20 +26,20 @@ class TestBird(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Bird:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `Bird`
|
# uncomment below to create an instance of `Bird`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.bird.Bird() # noqa: E501
|
model = Bird()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return Bird(
|
return Bird(
|
||||||
size = '',
|
size = '',
|
||||||
color = ''
|
color = ''
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Bird(
|
return Bird(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,36 +3,97 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.api.body_api import BodyApi
|
||||||
from openapi_client.api.body_api import BodyApi # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
|
|
||||||
class TestBodyApi(unittest.TestCase):
|
class TestBodyApi(unittest.TestCase):
|
||||||
"""BodyApi unit test stubs"""
|
"""BodyApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self) -> None:
|
||||||
self.api = openapi_client.api.body_api.BodyApi() # noqa: E501
|
self.api = BodyApi()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self) -> None:
|
||||||
pass
|
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 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
|
pass
|
||||||
|
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.category import Category
|
||||||
from openapi_client.models.category import Category # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestCategory(unittest.TestCase):
|
class TestCategory(unittest.TestCase):
|
||||||
"""Category unit test stubs"""
|
"""Category unit test stubs"""
|
||||||
@ -29,20 +26,20 @@ class TestCategory(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Category:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `Category`
|
# uncomment below to create an instance of `Category`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.category.Category() # noqa: E501
|
model = Category()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return Category(
|
return Category(
|
||||||
id = 1,
|
id = 1,
|
||||||
name = 'Dogs'
|
name = 'Dogs'
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Category(
|
return Category(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.data_query import DataQuery
|
||||||
from openapi_client.models.data_query import DataQuery # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestDataQuery(unittest.TestCase):
|
class TestDataQuery(unittest.TestCase):
|
||||||
"""DataQuery unit test stubs"""
|
"""DataQuery unit test stubs"""
|
||||||
@ -29,21 +26,21 @@ class TestDataQuery(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> DataQuery:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `DataQuery`
|
# uncomment below to create an instance of `DataQuery`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.data_query.DataQuery() # noqa: E501
|
model = DataQuery()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return DataQuery(
|
return DataQuery(
|
||||||
suffix = '',
|
suffix = '',
|
||||||
text = 'Some text',
|
text = 'Some text',
|
||||||
var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
|
var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return DataQuery(
|
return DataQuery(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.default_value import DefaultValue
|
||||||
from openapi_client.models.default_value import DefaultValue # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestDefaultValue(unittest.TestCase):
|
class TestDefaultValue(unittest.TestCase):
|
||||||
"""DefaultValue unit test stubs"""
|
"""DefaultValue unit test stubs"""
|
||||||
@ -29,34 +26,40 @@ class TestDefaultValue(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> DefaultValue:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `DefaultValue`
|
# uncomment below to create an instance of `DefaultValue`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.default_value.DefaultValue() # noqa: E501
|
model = DefaultValue()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return DefaultValue(
|
return DefaultValue(
|
||||||
|
array_string_enum_ref_default = [
|
||||||
|
'success'
|
||||||
|
],
|
||||||
array_string_enum_default = [
|
array_string_enum_default = [
|
||||||
'success'
|
'success'
|
||||||
],
|
],
|
||||||
array_string_default = [
|
array_string_default = [
|
||||||
''
|
''
|
||||||
],
|
],
|
||||||
array_integer_default = [
|
array_integer_default = [
|
||||||
56
|
56
|
||||||
],
|
],
|
||||||
array_string = [
|
array_string = [
|
||||||
''
|
''
|
||||||
],
|
],
|
||||||
array_string_nullable = [
|
array_string_nullable = [
|
||||||
''
|
''
|
||||||
],
|
],
|
||||||
|
array_string_extension_nullable = [
|
||||||
|
''
|
||||||
|
],
|
||||||
string_nullable = ''
|
string_nullable = ''
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return DefaultValue(
|
return DefaultValue(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,36 +3,48 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.api.form_api import FormApi
|
||||||
from openapi_client.api.form_api import FormApi # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
|
|
||||||
class TestFormApi(unittest.TestCase):
|
class TestFormApi(unittest.TestCase):
|
||||||
"""FormApi unit test stubs"""
|
"""FormApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self) -> None:
|
||||||
self.api = openapi_client.api.form_api.FormApi() # noqa: E501
|
self.api = FormApi()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self) -> None:
|
||||||
pass
|
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 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
|
pass
|
||||||
|
|
||||||
|
@ -3,36 +3,34 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.api.header_api import HeaderApi
|
||||||
from openapi_client.api.header_api import HeaderApi # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
|
|
||||||
class TestHeaderApi(unittest.TestCase):
|
class TestHeaderApi(unittest.TestCase):
|
||||||
"""HeaderApi unit test stubs"""
|
"""HeaderApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self) -> None:
|
||||||
self.api = openapi_client.api.header_api.HeaderApi() # noqa: E501
|
self.api = HeaderApi()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self) -> None:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def test_test_header_integer_boolean_string(self):
|
def test_test_header_integer_boolean_string_enums(self) -> None:
|
||||||
"""Test case for test_header_integer_boolean_string
|
"""Test case for test_header_integer_boolean_string_enums
|
||||||
|
|
||||||
Test header parameter(s) # noqa: E501
|
Test header parameter(s)
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
Contact: team@openapitools.org
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.number_properties_only import NumberPropertiesOnly
|
||||||
from openapi_client.models.number_properties_only import NumberPropertiesOnly # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestNumberPropertiesOnly(unittest.TestCase):
|
class TestNumberPropertiesOnly(unittest.TestCase):
|
||||||
"""NumberPropertiesOnly unit test stubs"""
|
"""NumberPropertiesOnly unit test stubs"""
|
||||||
@ -29,21 +26,21 @@ class TestNumberPropertiesOnly(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> NumberPropertiesOnly:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `NumberPropertiesOnly`
|
# uncomment below to create an instance of `NumberPropertiesOnly`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.number_properties_only.NumberPropertiesOnly() # noqa: E501
|
model = NumberPropertiesOnly()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return NumberPropertiesOnly(
|
return NumberPropertiesOnly(
|
||||||
number = 1.337,
|
number = 1.337,
|
||||||
float = 1.337,
|
var_float = 1.337,
|
||||||
double = ''
|
double = 0.8
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return NumberPropertiesOnly(
|
return NumberPropertiesOnly(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,36 +3,34 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.api.path_api import PathApi
|
||||||
from openapi_client.api.path_api import PathApi # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
|
|
||||||
class TestPathApi(unittest.TestCase):
|
class TestPathApi(unittest.TestCase):
|
||||||
"""PathApi unit test stubs"""
|
"""PathApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self) -> None:
|
||||||
self.api = openapi_client.api.path_api.PathApi() # noqa: E501
|
self.api = PathApi()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self) -> None:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def test_tests_path_string_path_string_integer_path_integer(self):
|
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
|
"""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
|
pass
|
||||||
|
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.pet import Pet
|
||||||
from openapi_client.models.pet import Pet # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestPet(unittest.TestCase):
|
class TestPet(unittest.TestCase):
|
||||||
"""Pet unit test stubs"""
|
"""Pet unit test stubs"""
|
||||||
@ -29,32 +26,32 @@ class TestPet(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Pet:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `Pet`
|
# uncomment below to create an instance of `Pet`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.pet.Pet() # noqa: E501
|
model = Pet()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return Pet(
|
return Pet(
|
||||||
id = 10,
|
id = 10,
|
||||||
name = 'doggie',
|
name = 'doggie',
|
||||||
category = openapi_client.models.category.Category(
|
category = openapi_client.models.category.Category(
|
||||||
id = 1,
|
id = 1,
|
||||||
name = 'Dogs', ),
|
name = 'Dogs', ),
|
||||||
photo_urls = [
|
photo_urls = [
|
||||||
''
|
''
|
||||||
],
|
],
|
||||||
tags = [
|
tags = [
|
||||||
openapi_client.models.tag.Tag(
|
openapi_client.models.tag.Tag(
|
||||||
id = 56,
|
id = 56,
|
||||||
name = '', )
|
name = '', )
|
||||||
],
|
],
|
||||||
status = 'available'
|
status = 'available'
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Pet(
|
return Pet(
|
||||||
name = 'doggie',
|
name = 'doggie',
|
||||||
photo_urls = [
|
photo_urls = [
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.query import Query
|
||||||
from openapi_client.models.query import Query # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestQuery(unittest.TestCase):
|
class TestQuery(unittest.TestCase):
|
||||||
"""Query unit test stubs"""
|
"""Query unit test stubs"""
|
||||||
@ -29,22 +26,22 @@ class TestQuery(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Query:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `Query`
|
# uncomment below to create an instance of `Query`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.query.Query() # noqa: E501
|
model = Query()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return Query(
|
return Query(
|
||||||
id = 56,
|
id = 56,
|
||||||
outcomes = [
|
outcomes = [
|
||||||
'SUCCESS'
|
'SUCCESS'
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Query(
|
return Query(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,50 +3,97 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.api.query_api import QueryApi
|
||||||
from openapi_client.api.query_api import QueryApi # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
|
|
||||||
class TestQueryApi(unittest.TestCase):
|
class TestQueryApi(unittest.TestCase):
|
||||||
"""QueryApi unit test stubs"""
|
"""QueryApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self) -> None:
|
||||||
self.api = openapi_client.api.query_api.QueryApi() # noqa: E501
|
self.api = QueryApi()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self) -> None:
|
||||||
pass
|
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 case for test_query_integer_boolean_string
|
||||||
|
|
||||||
Test query parameter(s) # noqa: E501
|
Test query parameter(s)
|
||||||
"""
|
"""
|
||||||
pass
|
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 case for test_query_style_form_explode_true_array_string
|
||||||
|
|
||||||
Test query parameter(s) # noqa: E501
|
Test query parameter(s)
|
||||||
"""
|
"""
|
||||||
pass
|
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 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
|
pass
|
||||||
|
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.string_enum_ref import StringEnumRef
|
||||||
from openapi_client.models.string_enum_ref import StringEnumRef # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestStringEnumRef(unittest.TestCase):
|
class TestStringEnumRef(unittest.TestCase):
|
||||||
"""StringEnumRef unit test stubs"""
|
"""StringEnumRef unit test stubs"""
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.tag import Tag
|
||||||
from openapi_client.models.tag import Tag # noqa: E501
|
|
||||||
from openapi_client.rest import ApiException
|
|
||||||
|
|
||||||
class TestTag(unittest.TestCase):
|
class TestTag(unittest.TestCase):
|
||||||
"""Tag unit test stubs"""
|
"""Tag unit test stubs"""
|
||||||
@ -29,20 +26,20 @@ class TestTag(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Tag:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `Tag`
|
# uncomment below to create an instance of `Tag`
|
||||||
"""
|
"""
|
||||||
model = openapi_client.models.tag.Tag() # noqa: E501
|
model = Tag()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return Tag(
|
return Tag(
|
||||||
id = 56,
|
id = 56,
|
||||||
name = ''
|
name = ''
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Tag(
|
return Tag(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -28,7 +28,7 @@ class TestTestFormObjectMultipartRequestMarker(unittest.TestCase):
|
|||||||
|
|
||||||
def make_instance(self, include_optional) -> TestFormObjectMultipartRequestMarker:
|
def make_instance(self, include_optional) -> TestFormObjectMultipartRequestMarker:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `TestFormObjectMultipartRequestMarker`
|
# uncomment below to create an instance of `TestFormObjectMultipartRequestMarker`
|
||||||
|
@ -3,22 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
Echo Server API
|
Echo Server API
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 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
|
||||||
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):
|
class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(unittest.TestCase):
|
||||||
"""TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter unit test stubs"""
|
"""TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter unit test stubs"""
|
||||||
@ -29,22 +26,22 @@ class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(uni
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter`
|
# 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
|
model = TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(
|
return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(
|
||||||
size = '',
|
size = '',
|
||||||
color = '',
|
color = '',
|
||||||
id = 1,
|
id = 1,
|
||||||
name = 'Dogs'
|
name = 'Dogs'
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(
|
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
|
||||||
|
|
||||||
Echo Server API # noqa: E501
|
Echo Server API
|
||||||
|
|
||||||
The version of the OpenAPI document: 0.1.0
|
The version of the OpenAPI document: 0.1.0
|
||||||
Contact: team@openapitools.org
|
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 unittest
|
||||||
import datetime
|
|
||||||
|
|
||||||
import openapi_client
|
from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
|
||||||
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):
|
class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.TestCase):
|
||||||
"""TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter unit test stubs"""
|
"""TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter unit test stubs"""
|
||||||
@ -29,21 +26,21 @@ class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter:
|
||||||
"""Test 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
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter`
|
# 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
|
model = TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter()
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
|
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
|
||||||
values = [
|
values = [
|
||||||
''
|
''
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
|
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -24,7 +24,7 @@ class TestAnotherFakeApi(unittest.IsolatedAsyncioTestCase):
|
|||||||
self.api = AnotherFakeApi()
|
self.api = AnotherFakeApi()
|
||||||
|
|
||||||
async def asyncTearDown(self) -> None:
|
async def asyncTearDown(self) -> None:
|
||||||
pass
|
await self.api.api_client.close()
|
||||||
|
|
||||||
async def test_call_123_test_special_tags(self) -> None:
|
async def test_call_123_test_special_tags(self) -> None:
|
||||||
"""Test case for call_123_test_special_tags
|
"""Test case for call_123_test_special_tags
|
||||||
|
@ -24,7 +24,7 @@ class TestDefaultApi(unittest.IsolatedAsyncioTestCase):
|
|||||||
self.api = DefaultApi()
|
self.api = DefaultApi()
|
||||||
|
|
||||||
async def asyncTearDown(self) -> None:
|
async def asyncTearDown(self) -> None:
|
||||||
pass
|
await self.api.api_client.close()
|
||||||
|
|
||||||
async def test_foo_get(self) -> None:
|
async def test_foo_get(self) -> None:
|
||||||
"""Test case for foo_get
|
"""Test case for foo_get
|
||||||
|
@ -42,6 +42,8 @@ class TestEnumTest(unittest.TestCase):
|
|||||||
enum_number = 1.1,
|
enum_number = 1.1,
|
||||||
enum_number_vendor_ext = 42,
|
enum_number_vendor_ext = 42,
|
||||||
enum_string_vendor_ext = 'FOO',
|
enum_string_vendor_ext = 'FOO',
|
||||||
|
enum_string_single_member = 'abc',
|
||||||
|
enum_integer_single_member = 100,
|
||||||
outer_enum = 'placed',
|
outer_enum = 'placed',
|
||||||
outer_enum_integer = 2,
|
outer_enum_integer = 2,
|
||||||
outer_enum_default_value = 'placed',
|
outer_enum_default_value = 'placed',
|
||||||
|
@ -24,7 +24,7 @@ class TestFakeApi(unittest.IsolatedAsyncioTestCase):
|
|||||||
self.api = FakeApi()
|
self.api = FakeApi()
|
||||||
|
|
||||||
async def asyncTearDown(self) -> None:
|
async def asyncTearDown(self) -> None:
|
||||||
pass
|
await self.api.api_client.close()
|
||||||
|
|
||||||
async def test_fake_any_type_request_body(self) -> None:
|
async def test_fake_any_type_request_body(self) -> None:
|
||||||
"""Test case for fake_any_type_request_body
|
"""Test case for fake_any_type_request_body
|
||||||
@ -267,6 +267,13 @@ class TestFakeApi(unittest.IsolatedAsyncioTestCase):
|
|||||||
"""
|
"""
|
||||||
pass
|
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__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
@ -24,7 +24,7 @@ class TestFakeClassnameTags123Api(unittest.IsolatedAsyncioTestCase):
|
|||||||
self.api = FakeClassnameTags123Api()
|
self.api = FakeClassnameTags123Api()
|
||||||
|
|
||||||
async def asyncTearDown(self) -> None:
|
async def asyncTearDown(self) -> None:
|
||||||
pass
|
await self.api.api_client.close()
|
||||||
|
|
||||||
async def test_test_classname(self) -> None:
|
async def test_test_classname(self) -> None:
|
||||||
"""Test case for test_classname
|
"""Test case for test_classname
|
||||||
|
@ -24,7 +24,7 @@ class TestImportTestDatetimeApi(unittest.IsolatedAsyncioTestCase):
|
|||||||
self.api = ImportTestDatetimeApi()
|
self.api = ImportTestDatetimeApi()
|
||||||
|
|
||||||
async def asyncTearDown(self) -> None:
|
async def asyncTearDown(self) -> None:
|
||||||
pass
|
await self.api.api_client.close()
|
||||||
|
|
||||||
async def test_import_test_return_datetime(self) -> None:
|
async def test_import_test_return_datetime(self) -> None:
|
||||||
"""Test case for import_test_return_datetime
|
"""Test case for import_test_return_datetime
|
||||||
|
@ -24,7 +24,7 @@ class TestPetApi(unittest.IsolatedAsyncioTestCase):
|
|||||||
self.api = PetApi()
|
self.api = PetApi()
|
||||||
|
|
||||||
async def asyncTearDown(self) -> None:
|
async def asyncTearDown(self) -> None:
|
||||||
pass
|
await self.api.api_client.close()
|
||||||
|
|
||||||
async def test_add_pet(self) -> None:
|
async def test_add_pet(self) -> None:
|
||||||
"""Test case for add_pet
|
"""Test case for add_pet
|
||||||
|
@ -24,7 +24,7 @@ class TestStoreApi(unittest.IsolatedAsyncioTestCase):
|
|||||||
self.api = StoreApi()
|
self.api = StoreApi()
|
||||||
|
|
||||||
async def asyncTearDown(self) -> None:
|
async def asyncTearDown(self) -> None:
|
||||||
pass
|
await self.api.api_client.close()
|
||||||
|
|
||||||
async def test_delete_order(self) -> None:
|
async def test_delete_order(self) -> None:
|
||||||
"""Test case for delete_order
|
"""Test case for delete_order
|
||||||
|
@ -24,7 +24,7 @@ class TestUserApi(unittest.IsolatedAsyncioTestCase):
|
|||||||
self.api = UserApi()
|
self.api = UserApi()
|
||||||
|
|
||||||
async def asyncTearDown(self) -> None:
|
async def asyncTearDown(self) -> None:
|
||||||
pass
|
await self.api.api_client.close()
|
||||||
|
|
||||||
async def test_create_user(self) -> None:
|
async def test_create_user(self) -> None:
|
||||||
"""Test case for create_user
|
"""Test case for create_user
|
||||||
|
@ -24,7 +24,7 @@ class TestAnotherFakeApi(unittest.IsolatedAsyncioTestCase):
|
|||||||
self.api = AnotherFakeApi()
|
self.api = AnotherFakeApi()
|
||||||
|
|
||||||
async def asyncTearDown(self) -> None:
|
async def asyncTearDown(self) -> None:
|
||||||
pass
|
await self.api.api_client.close()
|
||||||
|
|
||||||
async def test_call_123_test_special_tags(self) -> None:
|
async def test_call_123_test_special_tags(self) -> None:
|
||||||
"""Test case for call_123_test_special_tags
|
"""Test case for call_123_test_special_tags
|
||||||
|
@ -24,7 +24,7 @@ class TestDefaultApi(unittest.IsolatedAsyncioTestCase):
|
|||||||
self.api = DefaultApi()
|
self.api = DefaultApi()
|
||||||
|
|
||||||
async def asyncTearDown(self) -> None:
|
async def asyncTearDown(self) -> None:
|
||||||
pass
|
await self.api.api_client.close()
|
||||||
|
|
||||||
async def test_foo_get(self) -> None:
|
async def test_foo_get(self) -> None:
|
||||||
"""Test case for foo_get
|
"""Test case for foo_get
|
||||||
|
@ -43,6 +43,8 @@ class TestEnumTest(unittest.TestCase):
|
|||||||
enum_number = 1.1,
|
enum_number = 1.1,
|
||||||
enum_number_vendor_ext = 42,
|
enum_number_vendor_ext = 42,
|
||||||
enum_string_vendor_ext = 'FOO',
|
enum_string_vendor_ext = 'FOO',
|
||||||
|
enum_string_single_member = 'abc',
|
||||||
|
enum_integer_single_member = 100,
|
||||||
outer_enum = 'placed',
|
outer_enum = 'placed',
|
||||||
outer_enum_integer = 2,
|
outer_enum_integer = 2,
|
||||||
outer_enum_default_value = 'placed',
|
outer_enum_default_value = 'placed',
|
||||||
|
@ -24,7 +24,7 @@ class TestFakeApi(unittest.IsolatedAsyncioTestCase):
|
|||||||
self.api = FakeApi()
|
self.api = FakeApi()
|
||||||
|
|
||||||
async def asyncTearDown(self) -> None:
|
async def asyncTearDown(self) -> None:
|
||||||
pass
|
await self.api.api_client.close()
|
||||||
|
|
||||||
async def test_fake_any_type_request_body(self) -> None:
|
async def test_fake_any_type_request_body(self) -> None:
|
||||||
"""Test case for fake_any_type_request_body
|
"""Test case for fake_any_type_request_body
|
||||||
@ -267,6 +267,13 @@ class TestFakeApi(unittest.IsolatedAsyncioTestCase):
|
|||||||
"""
|
"""
|
||||||
pass
|
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__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
@ -24,7 +24,7 @@ class TestFakeClassnameTags123Api(unittest.IsolatedAsyncioTestCase):
|
|||||||
self.api = FakeClassnameTags123Api()
|
self.api = FakeClassnameTags123Api()
|
||||||
|
|
||||||
async def asyncTearDown(self) -> None:
|
async def asyncTearDown(self) -> None:
|
||||||
pass
|
await self.api.api_client.close()
|
||||||
|
|
||||||
async def test_test_classname(self) -> None:
|
async def test_test_classname(self) -> None:
|
||||||
"""Test case for test_classname
|
"""Test case for test_classname
|
||||||
|
@ -24,7 +24,7 @@ class TestImportTestDatetimeApi(unittest.IsolatedAsyncioTestCase):
|
|||||||
self.api = ImportTestDatetimeApi()
|
self.api = ImportTestDatetimeApi()
|
||||||
|
|
||||||
async def asyncTearDown(self) -> None:
|
async def asyncTearDown(self) -> None:
|
||||||
pass
|
await self.api.api_client.close()
|
||||||
|
|
||||||
async def test_import_test_return_datetime(self) -> None:
|
async def test_import_test_return_datetime(self) -> None:
|
||||||
"""Test case for import_test_return_datetime
|
"""Test case for import_test_return_datetime
|
||||||
|
@ -24,7 +24,7 @@ class TestPetApi(unittest.IsolatedAsyncioTestCase):
|
|||||||
self.api = PetApi()
|
self.api = PetApi()
|
||||||
|
|
||||||
async def asyncTearDown(self) -> None:
|
async def asyncTearDown(self) -> None:
|
||||||
pass
|
await self.api.api_client.close()
|
||||||
|
|
||||||
async def test_add_pet(self) -> None:
|
async def test_add_pet(self) -> None:
|
||||||
"""Test case for add_pet
|
"""Test case for add_pet
|
||||||
|
@ -24,7 +24,7 @@ class TestStoreApi(unittest.IsolatedAsyncioTestCase):
|
|||||||
self.api = StoreApi()
|
self.api = StoreApi()
|
||||||
|
|
||||||
async def asyncTearDown(self) -> None:
|
async def asyncTearDown(self) -> None:
|
||||||
pass
|
await self.api.api_client.close()
|
||||||
|
|
||||||
async def test_delete_order(self) -> None:
|
async def test_delete_order(self) -> None:
|
||||||
"""Test case for delete_order
|
"""Test case for delete_order
|
||||||
|
@ -24,7 +24,7 @@ class TestUserApi(unittest.IsolatedAsyncioTestCase):
|
|||||||
self.api = UserApi()
|
self.api = UserApi()
|
||||||
|
|
||||||
async def asyncTearDown(self) -> None:
|
async def asyncTearDown(self) -> None:
|
||||||
pass
|
await self.api.api_client.close()
|
||||||
|
|
||||||
async def test_create_user(self) -> None:
|
async def test_create_user(self) -> None:
|
||||||
"""Test case for create_user
|
"""Test case for create_user
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
The version of the OpenAPI document: 1.0.0
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.additional_properties_any_type import AdditionalPropertiesAnyType # noqa: E501
|
from petstore_api.models.additional_properties_any_type import AdditionalPropertiesAnyType # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestAdditionalPropertiesAnyType(unittest.TestCase):
|
class TestAdditionalPropertiesAnyType(unittest.TestCase):
|
||||||
"""AdditionalPropertiesAnyType unit test stubs"""
|
"""AdditionalPropertiesAnyType unit test stubs"""
|
||||||
@ -28,19 +26,19 @@ class TestAdditionalPropertiesAnyType(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> AdditionalPropertiesAnyType:
|
||||||
"""Test AdditionalPropertiesAnyType
|
"""Test AdditionalPropertiesAnyType
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `AdditionalPropertiesAnyType`
|
# uncomment below to create an instance of `AdditionalPropertiesAnyType`
|
||||||
"""
|
"""
|
||||||
model = petstore_api.models.additional_properties_any_type.AdditionalPropertiesAnyType() # noqa: E501
|
model = AdditionalPropertiesAnyType() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return AdditionalPropertiesAnyType(
|
return AdditionalPropertiesAnyType(
|
||||||
name = ''
|
name = ''
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return AdditionalPropertiesAnyType(
|
return AdditionalPropertiesAnyType(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
The version of the OpenAPI document: 1.0.0
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.additional_properties_class import AdditionalPropertiesClass # noqa: E501
|
from petstore_api.models.additional_properties_class import AdditionalPropertiesClass # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestAdditionalPropertiesClass(unittest.TestCase):
|
class TestAdditionalPropertiesClass(unittest.TestCase):
|
||||||
"""AdditionalPropertiesClass unit test stubs"""
|
"""AdditionalPropertiesClass unit test stubs"""
|
||||||
@ -28,26 +26,26 @@ class TestAdditionalPropertiesClass(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> AdditionalPropertiesClass:
|
||||||
"""Test AdditionalPropertiesClass
|
"""Test AdditionalPropertiesClass
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `AdditionalPropertiesClass`
|
# uncomment below to create an instance of `AdditionalPropertiesClass`
|
||||||
"""
|
"""
|
||||||
model = petstore_api.models.additional_properties_class.AdditionalPropertiesClass() # noqa: E501
|
model = AdditionalPropertiesClass() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return AdditionalPropertiesClass(
|
return AdditionalPropertiesClass(
|
||||||
map_property = {
|
map_property = {
|
||||||
'key' : ''
|
'key' : ''
|
||||||
},
|
},
|
||||||
map_of_map_property = {
|
map_of_map_property = {
|
||||||
'key' : {
|
'key' : {
|
||||||
'key' : ''
|
'key' : ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return AdditionalPropertiesClass(
|
return AdditionalPropertiesClass(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
The version of the OpenAPI document: 1.0.0
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.additional_properties_object import AdditionalPropertiesObject # noqa: E501
|
from petstore_api.models.additional_properties_object import AdditionalPropertiesObject # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestAdditionalPropertiesObject(unittest.TestCase):
|
class TestAdditionalPropertiesObject(unittest.TestCase):
|
||||||
"""AdditionalPropertiesObject unit test stubs"""
|
"""AdditionalPropertiesObject unit test stubs"""
|
||||||
@ -28,19 +26,19 @@ class TestAdditionalPropertiesObject(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> AdditionalPropertiesObject:
|
||||||
"""Test AdditionalPropertiesObject
|
"""Test AdditionalPropertiesObject
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `AdditionalPropertiesObject`
|
# uncomment below to create an instance of `AdditionalPropertiesObject`
|
||||||
"""
|
"""
|
||||||
model = petstore_api.models.additional_properties_object.AdditionalPropertiesObject() # noqa: E501
|
model = AdditionalPropertiesObject() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return AdditionalPropertiesObject(
|
return AdditionalPropertiesObject(
|
||||||
name = ''
|
name = ''
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return AdditionalPropertiesObject(
|
return AdditionalPropertiesObject(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
The version of the OpenAPI document: 1.0.0
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.additional_properties_with_description_only import AdditionalPropertiesWithDescriptionOnly # noqa: E501
|
from petstore_api.models.additional_properties_with_description_only import AdditionalPropertiesWithDescriptionOnly # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestAdditionalPropertiesWithDescriptionOnly(unittest.TestCase):
|
class TestAdditionalPropertiesWithDescriptionOnly(unittest.TestCase):
|
||||||
"""AdditionalPropertiesWithDescriptionOnly unit test stubs"""
|
"""AdditionalPropertiesWithDescriptionOnly unit test stubs"""
|
||||||
@ -28,19 +26,19 @@ class TestAdditionalPropertiesWithDescriptionOnly(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> AdditionalPropertiesWithDescriptionOnly:
|
||||||
"""Test AdditionalPropertiesWithDescriptionOnly
|
"""Test AdditionalPropertiesWithDescriptionOnly
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `AdditionalPropertiesWithDescriptionOnly`
|
# uncomment below to create an instance of `AdditionalPropertiesWithDescriptionOnly`
|
||||||
"""
|
"""
|
||||||
model = petstore_api.models.additional_properties_with_description_only.AdditionalPropertiesWithDescriptionOnly() # noqa: E501
|
model = AdditionalPropertiesWithDescriptionOnly() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return AdditionalPropertiesWithDescriptionOnly(
|
return AdditionalPropertiesWithDescriptionOnly(
|
||||||
name = ''
|
name = ''
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return AdditionalPropertiesWithDescriptionOnly(
|
return AdditionalPropertiesWithDescriptionOnly(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.all_of_with_single_ref import AllOfWithSingleRef # noqa: E501
|
from petstore_api.models.all_of_with_single_ref import AllOfWithSingleRef # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestAllOfWithSingleRef(unittest.TestCase):
|
class TestAllOfWithSingleRef(unittest.TestCase):
|
||||||
"""AllOfWithSingleRef unit test stubs"""
|
"""AllOfWithSingleRef unit test stubs"""
|
||||||
@ -28,25 +26,28 @@ class TestAllOfWithSingleRef(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> AllOfWithSingleRef:
|
||||||
"""Test AllOfWithSingleRef
|
"""Test AllOfWithSingleRef
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# model = petstore_api.models.all_of_with_single_ref.AllOfWithSingleRef() # noqa: E501
|
# uncomment below to create an instance of `AllOfWithSingleRef`
|
||||||
if include_optional :
|
"""
|
||||||
|
model = AllOfWithSingleRef() # noqa: E501
|
||||||
|
if include_optional:
|
||||||
return AllOfWithSingleRef(
|
return AllOfWithSingleRef(
|
||||||
username = '',
|
username = '',
|
||||||
single_ref_type = None
|
single_ref_type = 'admin'
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return AllOfWithSingleRef(
|
return AllOfWithSingleRef(
|
||||||
)
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
def testAllOfWithSingleRef(self):
|
def testAllOfWithSingleRef(self):
|
||||||
"""Test AllOfWithSingleRef"""
|
"""Test AllOfWithSingleRef"""
|
||||||
inst_req_only = self.make_instance(include_optional=False)
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
inst_req_and_optional = self.make_instance(include_optional=True)
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.animal import Animal # noqa: E501
|
from petstore_api.models.animal import Animal # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestAnimal(unittest.TestCase):
|
class TestAnimal(unittest.TestCase):
|
||||||
"""Animal unit test stubs"""
|
"""Animal unit test stubs"""
|
||||||
@ -28,26 +26,29 @@ class TestAnimal(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Animal:
|
||||||
"""Test Animal
|
"""Test Animal
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# model = petstore_api.models.animal.Animal() # noqa: E501
|
# uncomment below to create an instance of `Animal`
|
||||||
if include_optional :
|
"""
|
||||||
|
model = Animal() # noqa: E501
|
||||||
|
if include_optional:
|
||||||
return Animal(
|
return Animal(
|
||||||
class_name = '',
|
class_name = '',
|
||||||
color = 'red'
|
color = 'red'
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Animal(
|
return Animal(
|
||||||
class_name = '',
|
class_name = '',
|
||||||
)
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
def testAnimal(self):
|
def testAnimal(self):
|
||||||
"""Test Animal"""
|
"""Test Animal"""
|
||||||
inst_req_only = self.make_instance(include_optional=False)
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
inst_req_and_optional = self.make_instance(include_optional=True)
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
@ -3,32 +3,30 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
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 unittest
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.api.another_fake_api import AnotherFakeApi # noqa: E501
|
from petstore_api.api.another_fake_api import AnotherFakeApi # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
|
|
||||||
class TestAnotherFakeApi(unittest.TestCase):
|
class TestAnotherFakeApi(unittest.TestCase):
|
||||||
"""AnotherFakeApi unit test stubs"""
|
"""AnotherFakeApi unit test stubs"""
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self) -> None:
|
||||||
self.api = petstore_api.api.another_fake_api.AnotherFakeApi() # noqa: E501
|
self.api = AnotherFakeApi()
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self) -> None:
|
||||||
pass
|
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
|
"""Test case for call_123_test_special_tags
|
||||||
|
|
||||||
To test special tags # noqa: E501
|
To test special tags # noqa: E501
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.any_of_color import AnyOfColor # noqa: E501
|
from petstore_api.models.any_of_color import AnyOfColor # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestAnyOfColor(unittest.TestCase):
|
class TestAnyOfColor(unittest.TestCase):
|
||||||
"""AnyOfColor unit test stubs"""
|
"""AnyOfColor unit test stubs"""
|
||||||
@ -28,18 +26,18 @@ class TestAnyOfColor(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> AnyOfColor:
|
||||||
"""Test AnyOfColor
|
"""Test AnyOfColor
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `AnyOfColor`
|
# uncomment below to create an instance of `AnyOfColor`
|
||||||
"""
|
"""
|
||||||
model = petstore_api.models.any_of_color.AnyOfColor() # noqa: E501
|
model = AnyOfColor() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return AnyOfColor(
|
return AnyOfColor(
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return AnyOfColor(
|
return AnyOfColor(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.any_of_pig import AnyOfPig # noqa: E501
|
from petstore_api.models.any_of_pig import AnyOfPig # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestAnyOfPig(unittest.TestCase):
|
class TestAnyOfPig(unittest.TestCase):
|
||||||
"""AnyOfPig unit test stubs"""
|
"""AnyOfPig unit test stubs"""
|
||||||
@ -28,6 +26,28 @@ class TestAnyOfPig(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
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):
|
def testAnyOfPig(self):
|
||||||
"""Test AnyOfPig"""
|
"""Test AnyOfPig"""
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.api_response import ApiResponse # noqa: E501
|
from petstore_api.models.api_response import ApiResponse # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestApiResponse(unittest.TestCase):
|
class TestApiResponse(unittest.TestCase):
|
||||||
"""ApiResponse unit test stubs"""
|
"""ApiResponse unit test stubs"""
|
||||||
@ -28,26 +26,29 @@ class TestApiResponse(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> ApiResponse:
|
||||||
"""Test ApiResponse
|
"""Test ApiResponse
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# model = petstore_api.models.api_response.ApiResponse() # noqa: E501
|
# uncomment below to create an instance of `ApiResponse`
|
||||||
if include_optional :
|
"""
|
||||||
|
model = ApiResponse() # noqa: E501
|
||||||
|
if include_optional:
|
||||||
return ApiResponse(
|
return ApiResponse(
|
||||||
code = 56,
|
code = 56,
|
||||||
type = '',
|
type = '',
|
||||||
message = ''
|
message = ''
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return ApiResponse(
|
return ApiResponse(
|
||||||
)
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
def testApiResponse(self):
|
def testApiResponse(self):
|
||||||
"""Test ApiResponse"""
|
"""Test ApiResponse"""
|
||||||
inst_req_only = self.make_instance(include_optional=False)
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
inst_req_and_optional = self.make_instance(include_optional=True)
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
The version of the OpenAPI document: 1.0.0
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.array_of_array_of_model import ArrayOfArrayOfModel # noqa: E501
|
from petstore_api.models.array_of_array_of_model import ArrayOfArrayOfModel # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestArrayOfArrayOfModel(unittest.TestCase):
|
class TestArrayOfArrayOfModel(unittest.TestCase):
|
||||||
"""ArrayOfArrayOfModel unit test stubs"""
|
"""ArrayOfArrayOfModel unit test stubs"""
|
||||||
@ -28,17 +26,17 @@ class TestArrayOfArrayOfModel(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> ArrayOfArrayOfModel:
|
||||||
"""Test ArrayOfArrayOfModel
|
"""Test ArrayOfArrayOfModel
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `ArrayOfArrayOfModel`
|
# uncomment below to create an instance of `ArrayOfArrayOfModel`
|
||||||
"""
|
"""
|
||||||
model = petstore_api.models.array_of_array_of_model.ArrayOfArrayOfModel() # noqa: E501
|
model = ArrayOfArrayOfModel() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return ArrayOfArrayOfModel(
|
return ArrayOfArrayOfModel(
|
||||||
shop_id_to_org_online_lip_map = [
|
another_property = [
|
||||||
[
|
[
|
||||||
petstore_api.models.tag.Tag(
|
petstore_api.models.tag.Tag(
|
||||||
id = 56,
|
id = 56,
|
||||||
@ -46,7 +44,7 @@ class TestArrayOfArrayOfModel(unittest.TestCase):
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return ArrayOfArrayOfModel(
|
return ArrayOfArrayOfModel(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly # noqa: E501
|
from petstore_api.models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
|
class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
|
||||||
"""ArrayOfArrayOfNumberOnly unit test stubs"""
|
"""ArrayOfArrayOfNumberOnly unit test stubs"""
|
||||||
@ -28,13 +26,15 @@ class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> ArrayOfArrayOfNumberOnly:
|
||||||
"""Test ArrayOfArrayOfNumberOnly
|
"""Test ArrayOfArrayOfNumberOnly
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# model = petstore_api.models.array_of_array_of_number_only.ArrayOfArrayOfNumberOnly() # noqa: E501
|
# uncomment below to create an instance of `ArrayOfArrayOfNumberOnly`
|
||||||
if include_optional :
|
"""
|
||||||
|
model = ArrayOfArrayOfNumberOnly() # noqa: E501
|
||||||
|
if include_optional:
|
||||||
return ArrayOfArrayOfNumberOnly(
|
return ArrayOfArrayOfNumberOnly(
|
||||||
array_array_number = [
|
array_array_number = [
|
||||||
[
|
[
|
||||||
@ -42,14 +42,15 @@ class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return ArrayOfArrayOfNumberOnly(
|
return ArrayOfArrayOfNumberOnly(
|
||||||
)
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
def testArrayOfArrayOfNumberOnly(self):
|
def testArrayOfArrayOfNumberOnly(self):
|
||||||
"""Test ArrayOfArrayOfNumberOnly"""
|
"""Test ArrayOfArrayOfNumberOnly"""
|
||||||
inst_req_only = self.make_instance(include_optional=False)
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
inst_req_and_optional = self.make_instance(include_optional=True)
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.array_of_number_only import ArrayOfNumberOnly # noqa: E501
|
from petstore_api.models.array_of_number_only import ArrayOfNumberOnly # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestArrayOfNumberOnly(unittest.TestCase):
|
class TestArrayOfNumberOnly(unittest.TestCase):
|
||||||
"""ArrayOfNumberOnly unit test stubs"""
|
"""ArrayOfNumberOnly unit test stubs"""
|
||||||
@ -28,26 +26,29 @@ class TestArrayOfNumberOnly(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> ArrayOfNumberOnly:
|
||||||
"""Test ArrayOfNumberOnly
|
"""Test ArrayOfNumberOnly
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# model = petstore_api.models.array_of_number_only.ArrayOfNumberOnly() # noqa: E501
|
# uncomment below to create an instance of `ArrayOfNumberOnly`
|
||||||
if include_optional :
|
"""
|
||||||
|
model = ArrayOfNumberOnly() # noqa: E501
|
||||||
|
if include_optional:
|
||||||
return ArrayOfNumberOnly(
|
return ArrayOfNumberOnly(
|
||||||
array_number = [
|
array_number = [
|
||||||
1.337
|
1.337
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return ArrayOfNumberOnly(
|
return ArrayOfNumberOnly(
|
||||||
)
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
def testArrayOfNumberOnly(self):
|
def testArrayOfNumberOnly(self):
|
||||||
"""Test ArrayOfNumberOnly"""
|
"""Test ArrayOfNumberOnly"""
|
||||||
inst_req_only = self.make_instance(include_optional=False)
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
inst_req_and_optional = self.make_instance(include_optional=True)
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.array_test import ArrayTest # noqa: E501
|
from petstore_api.models.array_test import ArrayTest # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestArrayTest(unittest.TestCase):
|
class TestArrayTest(unittest.TestCase):
|
||||||
"""ArrayTest unit test stubs"""
|
"""ArrayTest unit test stubs"""
|
||||||
@ -28,22 +26,27 @@ class TestArrayTest(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> ArrayTest:
|
||||||
"""Test ArrayTest
|
"""Test ArrayTest
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# model = petstore_api.models.array_test.ArrayTest() # noqa: E501
|
# uncomment below to create an instance of `ArrayTest`
|
||||||
if include_optional :
|
"""
|
||||||
|
model = ArrayTest() # noqa: E501
|
||||||
|
if include_optional:
|
||||||
return ArrayTest(
|
return ArrayTest(
|
||||||
array_of_string = [
|
array_of_string = [
|
||||||
''
|
''
|
||||||
],
|
],
|
||||||
|
array_of_nullable_float = [
|
||||||
|
1.337
|
||||||
|
],
|
||||||
array_array_of_integer = [
|
array_array_of_integer = [
|
||||||
[
|
[
|
||||||
56
|
56
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
array_array_of_model = [
|
array_array_of_model = [
|
||||||
[
|
[
|
||||||
petstore_api.models.read_only_first.ReadOnlyFirst(
|
petstore_api.models.read_only_first.ReadOnlyFirst(
|
||||||
@ -52,14 +55,15 @@ class TestArrayTest(unittest.TestCase):
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return ArrayTest(
|
return ArrayTest(
|
||||||
)
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
def testArrayTest(self):
|
def testArrayTest(self):
|
||||||
"""Test ArrayTest"""
|
"""Test ArrayTest"""
|
||||||
inst_req_only = self.make_instance(include_optional=False)
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
inst_req_and_optional = self.make_instance(include_optional=True)
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.basque_pig import BasquePig # noqa: E501
|
from petstore_api.models.basque_pig import BasquePig # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestBasquePig(unittest.TestCase):
|
class TestBasquePig(unittest.TestCase):
|
||||||
"""BasquePig unit test stubs"""
|
"""BasquePig unit test stubs"""
|
||||||
@ -28,27 +26,30 @@ class TestBasquePig(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> BasquePig:
|
||||||
"""Test BasquePig
|
"""Test BasquePig
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# model = petstore_api.models.basque_pig.BasquePig() # noqa: E501
|
# uncomment below to create an instance of `BasquePig`
|
||||||
if include_optional :
|
"""
|
||||||
|
model = BasquePig() # noqa: E501
|
||||||
|
if include_optional:
|
||||||
return BasquePig(
|
return BasquePig(
|
||||||
class_name = '',
|
class_name = '',
|
||||||
color = ''
|
color = ''
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return BasquePig(
|
return BasquePig(
|
||||||
class_name = '',
|
class_name = '',
|
||||||
color = '',
|
color = '',
|
||||||
)
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
def testBasquePig(self):
|
def testBasquePig(self):
|
||||||
"""Test BasquePig"""
|
"""Test BasquePig"""
|
||||||
#inst_req_only = self.make_instance(include_optional=False)
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
#inst_req_and_optional = self.make_instance(include_optional=True)
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.capitalization import Capitalization # noqa: E501
|
from petstore_api.models.capitalization import Capitalization # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestCapitalization(unittest.TestCase):
|
class TestCapitalization(unittest.TestCase):
|
||||||
"""Capitalization unit test stubs"""
|
"""Capitalization unit test stubs"""
|
||||||
@ -28,29 +26,32 @@ class TestCapitalization(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Capitalization:
|
||||||
"""Test Capitalization
|
"""Test Capitalization
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# model = petstore_api.models.capitalization.Capitalization() # noqa: E501
|
# uncomment below to create an instance of `Capitalization`
|
||||||
if include_optional :
|
"""
|
||||||
|
model = Capitalization() # noqa: E501
|
||||||
|
if include_optional:
|
||||||
return Capitalization(
|
return Capitalization(
|
||||||
small_camel = '',
|
small_camel = '',
|
||||||
capital_camel = '',
|
capital_camel = '',
|
||||||
small_snake = '',
|
small_snake = '',
|
||||||
capital_snake = '',
|
capital_snake = '',
|
||||||
sca_eth_flow_points = '',
|
sca_eth_flow_points = '',
|
||||||
att_name = ''
|
att_name = ''
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Capitalization(
|
return Capitalization(
|
||||||
)
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
def testCapitalization(self):
|
def testCapitalization(self):
|
||||||
"""Test Capitalization"""
|
"""Test Capitalization"""
|
||||||
inst_req_only = self.make_instance(include_optional=False)
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
inst_req_and_optional = self.make_instance(include_optional=True)
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.cat import Cat # noqa: E501
|
from petstore_api.models.cat import Cat # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestCat(unittest.TestCase):
|
class TestCat(unittest.TestCase):
|
||||||
"""Cat unit test stubs"""
|
"""Cat unit test stubs"""
|
||||||
@ -28,6 +26,23 @@ class TestCat(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
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):
|
def testCat(self):
|
||||||
"""Test Cat"""
|
"""Test Cat"""
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.category import Category # noqa: E501
|
from petstore_api.models.category import Category # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestCategory(unittest.TestCase):
|
class TestCategory(unittest.TestCase):
|
||||||
"""Category unit test stubs"""
|
"""Category unit test stubs"""
|
||||||
@ -28,21 +26,24 @@ class TestCategory(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Category:
|
||||||
"""Test Category
|
"""Test Category
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# model = petstore_api.models.category.Category() # noqa: E501
|
# uncomment below to create an instance of `Category`
|
||||||
if include_optional :
|
"""
|
||||||
|
model = Category() # noqa: E501
|
||||||
|
if include_optional:
|
||||||
return Category(
|
return Category(
|
||||||
id = 56,
|
id = 56,
|
||||||
name = 'default-name'
|
name = 'default-name'
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Category(
|
return Category(
|
||||||
name = 'default-name',
|
name = 'default-name',
|
||||||
)
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
def testCategory(self):
|
def testCategory(self):
|
||||||
"""Test Category"""
|
"""Test Category"""
|
||||||
|
@ -36,16 +36,10 @@ class TestCircularAllOfRef(unittest.TestCase):
|
|||||||
model = CircularAllOfRef() # noqa: E501
|
model = CircularAllOfRef() # noqa: E501
|
||||||
if include_optional:
|
if include_optional:
|
||||||
return CircularAllOfRef(
|
return CircularAllOfRef(
|
||||||
|
name = '',
|
||||||
second_circular_all_of_ref = [
|
second_circular_all_of_ref = [
|
||||||
petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef(
|
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 = ''
|
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
return CircularAllOfRef(
|
return CircularAllOfRef(
|
||||||
|
@ -3,23 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
The version of the OpenAPI document: 1.0.0
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
from __future__ import absolute_import
|
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.circular_reference_model import CircularReferenceModel # noqa: E501
|
from petstore_api.models.circular_reference_model import CircularReferenceModel # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestCircularReferenceModel(unittest.TestCase):
|
class TestCircularReferenceModel(unittest.TestCase):
|
||||||
"""CircularReferenceModel unit test stubs"""
|
"""CircularReferenceModel unit test stubs"""
|
||||||
@ -30,17 +26,17 @@ class TestCircularReferenceModel(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> CircularReferenceModel:
|
||||||
"""Test CircularReferenceModel
|
"""Test CircularReferenceModel
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `CircularReferenceModel`
|
# uncomment below to create an instance of `CircularReferenceModel`
|
||||||
"""
|
"""
|
||||||
model = petstore_api.models.circular_reference_model.CircularReferenceModel() # noqa: E501
|
model = CircularReferenceModel() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return CircularReferenceModel(
|
return CircularReferenceModel(
|
||||||
size = 56,
|
size = 56,
|
||||||
nested = petstore_api.models.first_ref.FirstRef(
|
nested = petstore_api.models.first_ref.FirstRef(
|
||||||
category = '',
|
category = '',
|
||||||
self_ref = petstore_api.models.second_ref.SecondRef(
|
self_ref = petstore_api.models.second_ref.SecondRef(
|
||||||
@ -50,7 +46,7 @@ class TestCircularReferenceModel(unittest.TestCase):
|
|||||||
nested = petstore_api.models.first_ref.FirstRef(
|
nested = petstore_api.models.first_ref.FirstRef(
|
||||||
category = '', ), ), ), )
|
category = '', ), ), ), )
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return CircularReferenceModel(
|
return CircularReferenceModel(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.class_model import ClassModel # noqa: E501
|
from petstore_api.models.class_model import ClassModel # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestClassModel(unittest.TestCase):
|
class TestClassModel(unittest.TestCase):
|
||||||
"""ClassModel unit test stubs"""
|
"""ClassModel unit test stubs"""
|
||||||
@ -28,24 +26,27 @@ class TestClassModel(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> ClassModel:
|
||||||
"""Test ClassModel
|
"""Test ClassModel
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# model = petstore_api.models.class_model.ClassModel() # noqa: E501
|
# uncomment below to create an instance of `ClassModel`
|
||||||
if include_optional :
|
"""
|
||||||
|
model = ClassModel() # noqa: E501
|
||||||
|
if include_optional:
|
||||||
return ClassModel(
|
return ClassModel(
|
||||||
_class = ''
|
var_class = ''
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return ClassModel(
|
return ClassModel(
|
||||||
)
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
def testClassModel(self):
|
def testClassModel(self):
|
||||||
"""Test ClassModel"""
|
"""Test ClassModel"""
|
||||||
inst_req_only = self.make_instance(include_optional=False)
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
inst_req_and_optional = self.make_instance(include_optional=True)
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.client import Client # noqa: E501
|
from petstore_api.models.client import Client # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestClient(unittest.TestCase):
|
class TestClient(unittest.TestCase):
|
||||||
"""Client unit test stubs"""
|
"""Client unit test stubs"""
|
||||||
@ -28,24 +26,27 @@ class TestClient(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Client:
|
||||||
"""Test Client
|
"""Test Client
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# model = petstore_api.models.client.Client() # noqa: E501
|
# uncomment below to create an instance of `Client`
|
||||||
if include_optional :
|
"""
|
||||||
|
model = Client() # noqa: E501
|
||||||
|
if include_optional:
|
||||||
return Client(
|
return Client(
|
||||||
client = ''
|
client = ''
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Client(
|
return Client(
|
||||||
)
|
)
|
||||||
|
"""
|
||||||
|
|
||||||
def testClient(self):
|
def testClient(self):
|
||||||
"""Test Client"""
|
"""Test Client"""
|
||||||
inst_req_only = self.make_instance(include_optional=False)
|
# inst_req_only = self.make_instance(include_optional=False)
|
||||||
inst_req_and_optional = self.make_instance(include_optional=True)
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
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 unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.color import Color # noqa: E501
|
from petstore_api.models.color import Color # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestColor(unittest.TestCase):
|
class TestColor(unittest.TestCase):
|
||||||
"""Color unit test stubs"""
|
"""Color unit test stubs"""
|
||||||
@ -28,18 +26,18 @@ class TestColor(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Color:
|
||||||
"""Test Color
|
"""Test Color
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `Color`
|
# uncomment below to create an instance of `Color`
|
||||||
"""
|
"""
|
||||||
model = petstore_api.models.color.Color() # noqa: E501
|
model = Color() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return Color(
|
return Color(
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Color(
|
return Color(
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
|
@ -3,21 +3,19 @@
|
|||||||
"""
|
"""
|
||||||
OpenAPI Petstore
|
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
|
The version of the OpenAPI document: 1.0.0
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
""" # noqa: E501
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import petstore_api
|
|
||||||
from petstore_api.models.creature import Creature # noqa: E501
|
from petstore_api.models.creature import Creature # noqa: E501
|
||||||
from petstore_api.rest import ApiException
|
|
||||||
|
|
||||||
class TestCreature(unittest.TestCase):
|
class TestCreature(unittest.TestCase):
|
||||||
"""Creature unit test stubs"""
|
"""Creature unit test stubs"""
|
||||||
@ -28,21 +26,21 @@ class TestCreature(unittest.TestCase):
|
|||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def make_instance(self, include_optional):
|
def make_instance(self, include_optional) -> Creature:
|
||||||
"""Test Creature
|
"""Test Creature
|
||||||
include_option is a boolean, when False only required
|
include_option is a boolean, when False only required
|
||||||
params are included, when True both required and
|
params are included, when True both required and
|
||||||
optional params are included """
|
optional params are included """
|
||||||
# uncomment below to create an instance of `Creature`
|
# uncomment below to create an instance of `Creature`
|
||||||
"""
|
"""
|
||||||
model = petstore_api.models.creature.Creature() # noqa: E501
|
model = Creature() # noqa: E501
|
||||||
if include_optional :
|
if include_optional:
|
||||||
return Creature(
|
return Creature(
|
||||||
info = petstore_api.models.creature_info.CreatureInfo(
|
info = petstore_api.models.creature_info.CreatureInfo(
|
||||||
name = '', ),
|
name = '', ),
|
||||||
type = ''
|
type = ''
|
||||||
)
|
)
|
||||||
else :
|
else:
|
||||||
return Creature(
|
return Creature(
|
||||||
info = petstore_api.models.creature_info.CreatureInfo(
|
info = petstore_api.models.creature_info.CreatureInfo(
|
||||||
name = '', ),
|
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