[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:
William Cheng
2025-01-04 17:08:29 +08:00
committed by GitHub
parent 43f59bab81
commit 85c81bee5b
273 changed files with 3484 additions and 3205 deletions

View File

@@ -15,14 +15,14 @@
import unittest
from openapi_client.api.auth_api import AuthApi # noqa: E501
from openapi_client.api.auth_api import AuthApi
class TestAuthApi(unittest.TestCase):
"""AuthApi unit test stubs"""
def setUp(self) -> None:
self.api = AuthApi() # noqa: E501
self.api = AuthApi()
def tearDown(self) -> None:
pass
@@ -30,7 +30,14 @@ class TestAuthApi(unittest.TestCase):
def test_test_auth_http_basic(self) -> None:
"""Test case for test_auth_http_basic
To test HTTP basic authentication # noqa: E501
To test HTTP basic authentication
"""
pass
def test_test_auth_http_bearer(self) -> None:
"""Test case for test_auth_http_bearer
To test HTTP bearer authentication
"""
pass

View File

@@ -3,22 +3,19 @@
"""
Echo Server API
Echo Server API # noqa: E501
Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
"""
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import absolute_import
import unittest
import datetime
import openapi_client
from openapi_client.models.bird import Bird # noqa: E501
from openapi_client.rest import ApiException
from openapi_client.models.bird import Bird
class TestBird(unittest.TestCase):
"""Bird unit test stubs"""
@@ -29,20 +26,20 @@ class TestBird(unittest.TestCase):
def tearDown(self):
pass
def make_instance(self, include_optional):
def make_instance(self, include_optional) -> Bird:
"""Test Bird
include_option is a boolean, when False only required
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Bird`
"""
model = openapi_client.models.bird.Bird() # noqa: E501
if include_optional :
model = Bird()
if include_optional:
return Bird(
size = '',
size = '',
color = ''
)
else :
else:
return Bird(
)
"""

View File

@@ -3,36 +3,97 @@
"""
Echo Server API
Echo Server API # noqa: E501
Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
"""
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import absolute_import
import unittest
import openapi_client
from openapi_client.api.body_api import BodyApi # noqa: E501
from openapi_client.rest import ApiException
from openapi_client.api.body_api import BodyApi
class TestBodyApi(unittest.TestCase):
"""BodyApi unit test stubs"""
def setUp(self):
self.api = openapi_client.api.body_api.BodyApi() # noqa: E501
def setUp(self) -> None:
self.api = BodyApi()
def tearDown(self):
def tearDown(self) -> None:
pass
def test_test_echo_body_pet(self):
def test_test_binary_gif(self) -> None:
"""Test case for test_binary_gif
Test binary (gif) response body
"""
pass
def test_test_body_application_octetstream_binary(self) -> None:
"""Test case for test_body_application_octetstream_binary
Test body parameter(s)
"""
pass
def test_test_body_multipart_formdata_array_of_binary(self) -> None:
"""Test case for test_body_multipart_formdata_array_of_binary
Test array of binary in multipart mime
"""
pass
def test_test_body_multipart_formdata_single_binary(self) -> None:
"""Test case for test_body_multipart_formdata_single_binary
Test single binary in multipart mime
"""
pass
def test_test_echo_body_all_of_pet(self) -> None:
"""Test case for test_echo_body_all_of_pet
Test body parameter(s)
"""
pass
def test_test_echo_body_free_form_object_response_string(self) -> None:
"""Test case for test_echo_body_free_form_object_response_string
Test free form object
"""
pass
def test_test_echo_body_pet(self) -> None:
"""Test case for test_echo_body_pet
Test body parameter(s) # noqa: E501
Test body parameter(s)
"""
pass
def test_test_echo_body_pet_response_string(self) -> None:
"""Test case for test_echo_body_pet_response_string
Test empty response body
"""
pass
def test_test_echo_body_string_enum(self) -> None:
"""Test case for test_echo_body_string_enum
Test string enum response body
"""
pass
def test_test_echo_body_tag_response_string(self) -> None:
"""Test case for test_echo_body_tag_response_string
Test empty json (request body)
"""
pass

View File

@@ -3,22 +3,19 @@
"""
Echo Server API
Echo Server API # noqa: E501
Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
"""
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import absolute_import
import unittest
import datetime
import openapi_client
from openapi_client.models.category import Category # noqa: E501
from openapi_client.rest import ApiException
from openapi_client.models.category import Category
class TestCategory(unittest.TestCase):
"""Category unit test stubs"""
@@ -29,20 +26,20 @@ class TestCategory(unittest.TestCase):
def tearDown(self):
pass
def make_instance(self, include_optional):
def make_instance(self, include_optional) -> Category:
"""Test Category
include_option is a boolean, when False only required
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Category`
"""
model = openapi_client.models.category.Category() # noqa: E501
if include_optional :
model = Category()
if include_optional:
return Category(
id = 1,
id = 1,
name = 'Dogs'
)
else :
else:
return Category(
)
"""

View File

@@ -3,22 +3,19 @@
"""
Echo Server API
Echo Server API # noqa: E501
Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
"""
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import absolute_import
import unittest
import datetime
import openapi_client
from openapi_client.models.data_query import DataQuery # noqa: E501
from openapi_client.rest import ApiException
from openapi_client.models.data_query import DataQuery
class TestDataQuery(unittest.TestCase):
"""DataQuery unit test stubs"""
@@ -29,21 +26,21 @@ class TestDataQuery(unittest.TestCase):
def tearDown(self):
pass
def make_instance(self, include_optional):
def make_instance(self, include_optional) -> DataQuery:
"""Test DataQuery
include_option is a boolean, when False only required
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `DataQuery`
"""
model = openapi_client.models.data_query.DataQuery() # noqa: E501
if include_optional :
model = DataQuery()
if include_optional:
return DataQuery(
suffix = '',
text = 'Some text',
suffix = '',
text = 'Some text',
var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
)
else :
else:
return DataQuery(
)
"""

View File

@@ -3,22 +3,19 @@
"""
Echo Server API
Echo Server API # noqa: E501
Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
"""
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import absolute_import
import unittest
import datetime
import openapi_client
from openapi_client.models.default_value import DefaultValue # noqa: E501
from openapi_client.rest import ApiException
from openapi_client.models.default_value import DefaultValue
class TestDefaultValue(unittest.TestCase):
"""DefaultValue unit test stubs"""
@@ -29,34 +26,40 @@ class TestDefaultValue(unittest.TestCase):
def tearDown(self):
pass
def make_instance(self, include_optional):
def make_instance(self, include_optional) -> DefaultValue:
"""Test DefaultValue
include_option is a boolean, when False only required
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `DefaultValue`
"""
model = openapi_client.models.default_value.DefaultValue() # noqa: E501
if include_optional :
model = DefaultValue()
if include_optional:
return DefaultValue(
array_string_enum_ref_default = [
'success'
],
array_string_enum_default = [
'success'
],
],
array_string_default = [
''
],
],
array_integer_default = [
56
],
],
array_string = [
''
],
],
array_string_nullable = [
''
],
],
array_string_extension_nullable = [
''
],
string_nullable = ''
)
else :
else:
return DefaultValue(
)
"""

View File

@@ -3,36 +3,48 @@
"""
Echo Server API
Echo Server API # noqa: E501
Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
"""
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import absolute_import
import unittest
import openapi_client
from openapi_client.api.form_api import FormApi # noqa: E501
from openapi_client.rest import ApiException
from openapi_client.api.form_api import FormApi
class TestFormApi(unittest.TestCase):
"""FormApi unit test stubs"""
def setUp(self):
self.api = openapi_client.api.form_api.FormApi() # noqa: E501
def setUp(self) -> None:
self.api = FormApi()
def tearDown(self):
def tearDown(self) -> None:
pass
def test_test_form_integer_boolean_string(self):
def test_test_form_integer_boolean_string(self) -> None:
"""Test case for test_form_integer_boolean_string
Test form parameter(s) # noqa: E501
Test form parameter(s)
"""
pass
def test_test_form_object_multipart(self) -> None:
"""Test case for test_form_object_multipart
Test form parameter(s) for multipart schema
"""
pass
def test_test_form_oneof(self) -> None:
"""Test case for test_form_oneof
Test form parameter(s) for oneOf schema
"""
pass

View File

@@ -3,36 +3,34 @@
"""
Echo Server API
Echo Server API # noqa: E501
Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
"""
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import absolute_import
import unittest
import openapi_client
from openapi_client.api.header_api import HeaderApi # noqa: E501
from openapi_client.rest import ApiException
from openapi_client.api.header_api import HeaderApi
class TestHeaderApi(unittest.TestCase):
"""HeaderApi unit test stubs"""
def setUp(self):
self.api = openapi_client.api.header_api.HeaderApi() # noqa: E501
def setUp(self) -> None:
self.api = HeaderApi()
def tearDown(self):
def tearDown(self) -> None:
pass
def test_test_header_integer_boolean_string(self):
"""Test case for test_header_integer_boolean_string
def test_test_header_integer_boolean_string_enums(self) -> None:
"""Test case for test_header_integer_boolean_string_enums
Test header parameter(s) # noqa: E501
Test header parameter(s)
"""
pass

View File

@@ -3,22 +3,19 @@
"""
Echo Server API
Echo Server API # noqa: E501
Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
""" # noqa: E501
import unittest
import datetime
import openapi_client
from openapi_client.models.number_properties_only import NumberPropertiesOnly # noqa: E501
from openapi_client.rest import ApiException
from openapi_client.models.number_properties_only import NumberPropertiesOnly
class TestNumberPropertiesOnly(unittest.TestCase):
"""NumberPropertiesOnly unit test stubs"""
@@ -29,21 +26,21 @@ class TestNumberPropertiesOnly(unittest.TestCase):
def tearDown(self):
pass
def make_instance(self, include_optional):
def make_instance(self, include_optional) -> NumberPropertiesOnly:
"""Test NumberPropertiesOnly
include_option is a boolean, when False only required
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `NumberPropertiesOnly`
"""
model = openapi_client.models.number_properties_only.NumberPropertiesOnly() # noqa: E501
if include_optional :
model = NumberPropertiesOnly()
if include_optional:
return NumberPropertiesOnly(
number = 1.337,
float = 1.337,
double = ''
number = 1.337,
var_float = 1.337,
double = 0.8
)
else :
else:
return NumberPropertiesOnly(
)
"""

View File

@@ -3,36 +3,34 @@
"""
Echo Server API
Echo Server API # noqa: E501
Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
"""
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import absolute_import
import unittest
import openapi_client
from openapi_client.api.path_api import PathApi # noqa: E501
from openapi_client.rest import ApiException
from openapi_client.api.path_api import PathApi
class TestPathApi(unittest.TestCase):
"""PathApi unit test stubs"""
def setUp(self):
self.api = openapi_client.api.path_api.PathApi() # noqa: E501
def setUp(self) -> None:
self.api = PathApi()
def tearDown(self):
def tearDown(self) -> None:
pass
def test_tests_path_string_path_string_integer_path_integer(self):
"""Test case for tests_path_string_path_string_integer_path_integer
def test_tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(self) -> None:
"""Test case for tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path
Test path parameter(s) # noqa: E501
Test path parameter(s)
"""
pass

View File

@@ -3,22 +3,19 @@
"""
Echo Server API
Echo Server API # noqa: E501
Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
"""
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import absolute_import
import unittest
import datetime
import openapi_client
from openapi_client.models.pet import Pet # noqa: E501
from openapi_client.rest import ApiException
from openapi_client.models.pet import Pet
class TestPet(unittest.TestCase):
"""Pet unit test stubs"""
@@ -29,32 +26,32 @@ class TestPet(unittest.TestCase):
def tearDown(self):
pass
def make_instance(self, include_optional):
def make_instance(self, include_optional) -> Pet:
"""Test Pet
include_option is a boolean, when False only required
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Pet`
"""
model = openapi_client.models.pet.Pet() # noqa: E501
if include_optional :
model = Pet()
if include_optional:
return Pet(
id = 10,
name = 'doggie',
id = 10,
name = 'doggie',
category = openapi_client.models.category.Category(
id = 1,
name = 'Dogs', ),
name = 'Dogs', ),
photo_urls = [
''
],
],
tags = [
openapi_client.models.tag.Tag(
id = 56,
name = '', )
],
],
status = 'available'
)
else :
else:
return Pet(
name = 'doggie',
photo_urls = [

View File

@@ -3,22 +3,19 @@
"""
Echo Server API
Echo Server API # noqa: E501
Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
"""
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import absolute_import
import unittest
import datetime
import openapi_client
from openapi_client.models.query import Query # noqa: E501
from openapi_client.rest import ApiException
from openapi_client.models.query import Query
class TestQuery(unittest.TestCase):
"""Query unit test stubs"""
@@ -29,22 +26,22 @@ class TestQuery(unittest.TestCase):
def tearDown(self):
pass
def make_instance(self, include_optional):
def make_instance(self, include_optional) -> Query:
"""Test Query
include_option is a boolean, when False only required
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Query`
"""
model = openapi_client.models.query.Query() # noqa: E501
if include_optional :
model = Query()
if include_optional:
return Query(
id = 56,
id = 56,
outcomes = [
'SUCCESS'
]
)
else :
else:
return Query(
)
"""

View File

@@ -3,50 +3,97 @@
"""
Echo Server API
Echo Server API # noqa: E501
Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
"""
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import absolute_import
import unittest
import openapi_client
from openapi_client.api.query_api import QueryApi # noqa: E501
from openapi_client.rest import ApiException
from openapi_client.api.query_api import QueryApi
class TestQueryApi(unittest.TestCase):
"""QueryApi unit test stubs"""
def setUp(self):
self.api = openapi_client.api.query_api.QueryApi() # noqa: E501
def setUp(self) -> None:
self.api = QueryApi()
def tearDown(self):
def tearDown(self) -> None:
pass
def test_test_query_integer_boolean_string(self):
def test_test_enum_ref_string(self) -> None:
"""Test case for test_enum_ref_string
Test query parameter(s)
"""
pass
def test_test_query_datetime_date_string(self) -> None:
"""Test case for test_query_datetime_date_string
Test query parameter(s)
"""
pass
def test_test_query_integer_boolean_string(self) -> None:
"""Test case for test_query_integer_boolean_string
Test query parameter(s) # noqa: E501
Test query parameter(s)
"""
pass
def test_test_query_style_form_explode_true_array_string(self):
def test_test_query_style_deep_object_explode_true_object(self) -> None:
"""Test case for test_query_style_deep_object_explode_true_object
Test query parameter(s)
"""
pass
def test_test_query_style_deep_object_explode_true_object_all_of(self) -> None:
"""Test case for test_query_style_deep_object_explode_true_object_all_of
Test query parameter(s)
"""
pass
def test_test_query_style_form_explode_false_array_integer(self) -> None:
"""Test case for test_query_style_form_explode_false_array_integer
Test query parameter(s)
"""
pass
def test_test_query_style_form_explode_false_array_string(self) -> None:
"""Test case for test_query_style_form_explode_false_array_string
Test query parameter(s)
"""
pass
def test_test_query_style_form_explode_true_array_string(self) -> None:
"""Test case for test_query_style_form_explode_true_array_string
Test query parameter(s) # noqa: E501
Test query parameter(s)
"""
pass
def test_test_query_style_form_explode_true_object(self):
def test_test_query_style_form_explode_true_object(self) -> None:
"""Test case for test_query_style_form_explode_true_object
Test query parameter(s) # noqa: E501
Test query parameter(s)
"""
pass
def test_test_query_style_form_explode_true_object_all_of(self) -> None:
"""Test case for test_query_style_form_explode_true_object_all_of
Test query parameter(s)
"""
pass

View File

@@ -3,22 +3,19 @@
"""
Echo Server API
Echo Server API # noqa: E501
Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
"""
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import absolute_import
import unittest
import datetime
import openapi_client
from openapi_client.models.string_enum_ref import StringEnumRef # noqa: E501
from openapi_client.rest import ApiException
from openapi_client.models.string_enum_ref import StringEnumRef
class TestStringEnumRef(unittest.TestCase):
"""StringEnumRef unit test stubs"""

View File

@@ -3,22 +3,19 @@
"""
Echo Server API
Echo Server API # noqa: E501
Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
"""
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import absolute_import
import unittest
import datetime
import openapi_client
from openapi_client.models.tag import Tag # noqa: E501
from openapi_client.rest import ApiException
from openapi_client.models.tag import Tag
class TestTag(unittest.TestCase):
"""Tag unit test stubs"""
@@ -29,20 +26,20 @@ class TestTag(unittest.TestCase):
def tearDown(self):
pass
def make_instance(self, include_optional):
def make_instance(self, include_optional) -> Tag:
"""Test Tag
include_option is a boolean, when False only required
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Tag`
"""
model = openapi_client.models.tag.Tag() # noqa: E501
if include_optional :
model = Tag()
if include_optional:
return Tag(
id = 56,
id = 56,
name = ''
)
else :
else:
return Tag(
)
"""

View File

@@ -28,7 +28,7 @@ class TestTestFormObjectMultipartRequestMarker(unittest.TestCase):
def make_instance(self, include_optional) -> TestFormObjectMultipartRequestMarker:
"""Test TestFormObjectMultipartRequestMarker
include_option is a boolean, when False only required
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `TestFormObjectMultipartRequestMarker`

View File

@@ -3,22 +3,19 @@
"""
Echo Server API
Echo Server API # noqa: E501
Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
"""
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import absolute_import
import unittest
import datetime
import openapi_client
from openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter import TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter # noqa: E501
from openapi_client.rest import ApiException
from openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter import TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(unittest.TestCase):
"""TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter unit test stubs"""
@@ -29,22 +26,22 @@ class TestTestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(uni
def tearDown(self):
pass
def make_instance(self, include_optional):
def make_instance(self, include_optional) -> TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter:
"""Test TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
include_option is a boolean, when False only required
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter`
"""
model = openapi_client.models.test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() # noqa: E501
if include_optional :
model = TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter()
if include_optional:
return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(
size = '',
color = '',
id = 1,
size = '',
color = '',
id = 1,
name = 'Dogs'
)
else :
else:
return TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(
)
"""

View File

@@ -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()

View File

@@ -3,22 +3,19 @@
"""
Echo Server API
Echo Server API # noqa: E501
Echo Server API
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by: https://openapi-generator.tech
"""
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import absolute_import
import unittest
import datetime
import openapi_client
from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter # noqa: E501
from openapi_client.rest import ApiException
from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.TestCase):
"""TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter unit test stubs"""
@@ -29,21 +26,21 @@ class TestTestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(unittest.
def tearDown(self):
pass
def make_instance(self, include_optional):
def make_instance(self, include_optional) -> TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter:
"""Test TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
include_option is a boolean, when False only required
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter`
"""
model = openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() # noqa: E501
if include_optional :
model = TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter()
if include_optional:
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
values = [
''
]
)
else :
else:
return TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(
)
"""