mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-03 08:46:55 +00:00
[Python] Add echo_api test object serialization for multipart requests (#18176)
* [python] echo add test object serialization for multipart requests * [echo api] update samples * [echo api] update samples
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
# 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_form_object_multipart_request_marker import TestFormObjectMultipartRequestMarker # noqa: E501
|
||||
|
||||
class TestTestFormObjectMultipartRequestMarker(unittest.TestCase):
|
||||
"""TestFormObjectMultipartRequestMarker unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> TestFormObjectMultipartRequestMarker:
|
||||
"""Test TestFormObjectMultipartRequestMarker
|
||||
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 `TestFormObjectMultipartRequestMarker`
|
||||
"""
|
||||
model = TestFormObjectMultipartRequestMarker() # noqa: E501
|
||||
if include_optional:
|
||||
return TestFormObjectMultipartRequestMarker(
|
||||
name = ''
|
||||
)
|
||||
else:
|
||||
return TestFormObjectMultipartRequestMarker(
|
||||
)
|
||||
"""
|
||||
|
||||
def testTestFormObjectMultipartRequestMarker(self):
|
||||
"""Test TestFormObjectMultipartRequestMarker"""
|
||||
# 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