forked from loafle/openapi-generator-original
Add tests for query parameters (array of integer/string) (#17686)
* add tests for query parameters in python client * update other samples * update samples
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
# 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()
|
||||
Reference in New Issue
Block a user