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