mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-18 22:17:05 +00:00
[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:
@@ -24,7 +24,7 @@ class TestAnotherFakeApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = AnotherFakeApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_call_123_test_special_tags(self) -> None:
|
||||
"""Test case for call_123_test_special_tags
|
||||
|
||||
@@ -24,7 +24,7 @@ class TestDefaultApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = DefaultApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_foo_get(self) -> None:
|
||||
"""Test case for foo_get
|
||||
|
||||
@@ -42,6 +42,8 @@ class TestEnumTest(unittest.TestCase):
|
||||
enum_number = 1.1,
|
||||
enum_number_vendor_ext = 42,
|
||||
enum_string_vendor_ext = 'FOO',
|
||||
enum_string_single_member = 'abc',
|
||||
enum_integer_single_member = 100,
|
||||
outer_enum = 'placed',
|
||||
outer_enum_integer = 2,
|
||||
outer_enum_default_value = 'placed',
|
||||
|
||||
@@ -24,7 +24,7 @@ class TestFakeApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = FakeApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_fake_any_type_request_body(self) -> None:
|
||||
"""Test case for fake_any_type_request_body
|
||||
@@ -267,6 +267,13 @@ class TestFakeApi(unittest.IsolatedAsyncioTestCase):
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_upload_file_with_additional_properties(self) -> None:
|
||||
"""Test case for upload_file_with_additional_properties
|
||||
|
||||
uploads a file and additional properties using multipart/form-data
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
@@ -24,7 +24,7 @@ class TestFakeClassnameTags123Api(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = FakeClassnameTags123Api()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_test_classname(self) -> None:
|
||||
"""Test case for test_classname
|
||||
|
||||
@@ -24,7 +24,7 @@ class TestImportTestDatetimeApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = ImportTestDatetimeApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_import_test_return_datetime(self) -> None:
|
||||
"""Test case for import_test_return_datetime
|
||||
|
||||
@@ -24,7 +24,7 @@ class TestPetApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = PetApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_add_pet(self) -> None:
|
||||
"""Test case for add_pet
|
||||
|
||||
@@ -24,7 +24,7 @@ class TestStoreApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = StoreApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_delete_order(self) -> None:
|
||||
"""Test case for delete_order
|
||||
|
||||
@@ -24,7 +24,7 @@ class TestUserApi(unittest.IsolatedAsyncioTestCase):
|
||||
self.api = UserApi()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
await self.api.api_client.close()
|
||||
|
||||
async def test_create_user(self) -> None:
|
||||
"""Test case for create_user
|
||||
|
||||
Reference in New Issue
Block a user