python: copy the current Python generator into a "pydantic v1" generator (#16656)

* Copy the current Python generator into a "pydantic v1" generator

This generator will be deprecated over time and the normal generator will
focus on Pydantic v2.

* add missing doc
This commit is contained in:
Jonathan Ballet
2023-09-25 06:13:24 +02:00
committed by GitHub
parent d58e68f8c0
commit 3b95f701e5
695 changed files with 69491 additions and 1 deletions

View File

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.additional_properties_any_type import AdditionalPropertiesAnyType # noqa: E501
class TestAdditionalPropertiesAnyType(unittest.TestCase):
"""AdditionalPropertiesAnyType unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AdditionalPropertiesAnyType:
"""Test AdditionalPropertiesAnyType
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 `AdditionalPropertiesAnyType`
"""
model = AdditionalPropertiesAnyType() # noqa: E501
if include_optional:
return AdditionalPropertiesAnyType(
name = ''
)
else:
return AdditionalPropertiesAnyType(
)
"""
def testAdditionalPropertiesAnyType(self):
"""Test AdditionalPropertiesAnyType"""
# 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

@@ -0,0 +1,59 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.additional_properties_class import AdditionalPropertiesClass # noqa: E501
class TestAdditionalPropertiesClass(unittest.TestCase):
"""AdditionalPropertiesClass unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AdditionalPropertiesClass:
"""Test AdditionalPropertiesClass
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 `AdditionalPropertiesClass`
"""
model = AdditionalPropertiesClass() # noqa: E501
if include_optional:
return AdditionalPropertiesClass(
map_property = {
'key' : ''
},
map_of_map_property = {
'key' : {
'key' : ''
}
}
)
else:
return AdditionalPropertiesClass(
)
"""
def testAdditionalPropertiesClass(self):
"""Test AdditionalPropertiesClass"""
# 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

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.additional_properties_object import AdditionalPropertiesObject # noqa: E501
class TestAdditionalPropertiesObject(unittest.TestCase):
"""AdditionalPropertiesObject unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AdditionalPropertiesObject:
"""Test AdditionalPropertiesObject
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 `AdditionalPropertiesObject`
"""
model = AdditionalPropertiesObject() # noqa: E501
if include_optional:
return AdditionalPropertiesObject(
name = ''
)
else:
return AdditionalPropertiesObject(
)
"""
def testAdditionalPropertiesObject(self):
"""Test AdditionalPropertiesObject"""
# 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

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.additional_properties_with_description_only import AdditionalPropertiesWithDescriptionOnly # noqa: E501
class TestAdditionalPropertiesWithDescriptionOnly(unittest.TestCase):
"""AdditionalPropertiesWithDescriptionOnly unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AdditionalPropertiesWithDescriptionOnly:
"""Test AdditionalPropertiesWithDescriptionOnly
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 `AdditionalPropertiesWithDescriptionOnly`
"""
model = AdditionalPropertiesWithDescriptionOnly() # noqa: E501
if include_optional:
return AdditionalPropertiesWithDescriptionOnly(
name = ''
)
else:
return AdditionalPropertiesWithDescriptionOnly(
)
"""
def testAdditionalPropertiesWithDescriptionOnly(self):
"""Test AdditionalPropertiesWithDescriptionOnly"""
# 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

@@ -0,0 +1,53 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.all_of_with_single_ref import AllOfWithSingleRef # noqa: E501
class TestAllOfWithSingleRef(unittest.TestCase):
"""AllOfWithSingleRef unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AllOfWithSingleRef:
"""Test AllOfWithSingleRef
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 `AllOfWithSingleRef`
"""
model = AllOfWithSingleRef() # noqa: E501
if include_optional:
return AllOfWithSingleRef(
username = '',
single_ref_type = 'admin'
)
else:
return AllOfWithSingleRef(
)
"""
def testAllOfWithSingleRef(self):
"""Test AllOfWithSingleRef"""
# 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

@@ -0,0 +1,54 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.animal import Animal # noqa: E501
class TestAnimal(unittest.TestCase):
"""Animal unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Animal:
"""Test Animal
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 `Animal`
"""
model = Animal() # noqa: E501
if include_optional:
return Animal(
class_name = '',
color = 'red'
)
else:
return Animal(
class_name = '',
)
"""
def testAnimal(self):
"""Test Animal"""
# 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

@@ -0,0 +1,38 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from petstore_api.api.another_fake_api import AnotherFakeApi # noqa: E501
class TestAnotherFakeApi(unittest.TestCase):
"""AnotherFakeApi unit test stubs"""
def setUp(self) -> None:
self.api = AnotherFakeApi() # noqa: E501
def tearDown(self) -> None:
pass
def test_call_123_test_special_tags(self) -> None:
"""Test case for call_123_test_special_tags
To test special tags # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,51 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.any_of_color import AnyOfColor # noqa: E501
class TestAnyOfColor(unittest.TestCase):
"""AnyOfColor unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AnyOfColor:
"""Test AnyOfColor
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 `AnyOfColor`
"""
model = AnyOfColor() # noqa: E501
if include_optional:
return AnyOfColor(
)
else:
return AnyOfColor(
)
"""
def testAnyOfColor(self):
"""Test AnyOfColor"""
# 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

@@ -0,0 +1,57 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.any_of_pig import AnyOfPig # noqa: E501
class TestAnyOfPig(unittest.TestCase):
"""AnyOfPig unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AnyOfPig:
"""Test AnyOfPig
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 `AnyOfPig`
"""
model = AnyOfPig() # noqa: E501
if include_optional:
return AnyOfPig(
class_name = '',
color = '',
size = 56
)
else:
return AnyOfPig(
class_name = '',
color = '',
size = 56,
)
"""
def testAnyOfPig(self):
"""Test AnyOfPig"""
# 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

@@ -0,0 +1,54 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.api_response import ApiResponse # noqa: E501
class TestApiResponse(unittest.TestCase):
"""ApiResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ApiResponse:
"""Test ApiResponse
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 `ApiResponse`
"""
model = ApiResponse() # noqa: E501
if include_optional:
return ApiResponse(
code = 56,
type = '',
message = ''
)
else:
return ApiResponse(
)
"""
def testApiResponse(self):
"""Test ApiResponse"""
# 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

@@ -0,0 +1,58 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.array_of_array_of_model import ArrayOfArrayOfModel # noqa: E501
class TestArrayOfArrayOfModel(unittest.TestCase):
"""ArrayOfArrayOfModel unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ArrayOfArrayOfModel:
"""Test ArrayOfArrayOfModel
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 `ArrayOfArrayOfModel`
"""
model = ArrayOfArrayOfModel() # noqa: E501
if include_optional:
return ArrayOfArrayOfModel(
another_property = [
[
petstore_api.models.tag.Tag(
id = 56,
name = '', )
]
]
)
else:
return ArrayOfArrayOfModel(
)
"""
def testArrayOfArrayOfModel(self):
"""Test ArrayOfArrayOfModel"""
# 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

@@ -0,0 +1,56 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly # noqa: E501
class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
"""ArrayOfArrayOfNumberOnly unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ArrayOfArrayOfNumberOnly:
"""Test ArrayOfArrayOfNumberOnly
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 `ArrayOfArrayOfNumberOnly`
"""
model = ArrayOfArrayOfNumberOnly() # noqa: E501
if include_optional:
return ArrayOfArrayOfNumberOnly(
array_array_number = [
[
1.337
]
]
)
else:
return ArrayOfArrayOfNumberOnly(
)
"""
def testArrayOfArrayOfNumberOnly(self):
"""Test ArrayOfArrayOfNumberOnly"""
# 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

@@ -0,0 +1,54 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.array_of_number_only import ArrayOfNumberOnly # noqa: E501
class TestArrayOfNumberOnly(unittest.TestCase):
"""ArrayOfNumberOnly unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ArrayOfNumberOnly:
"""Test ArrayOfNumberOnly
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 `ArrayOfNumberOnly`
"""
model = ArrayOfNumberOnly() # noqa: E501
if include_optional:
return ArrayOfNumberOnly(
array_number = [
1.337
]
)
else:
return ArrayOfNumberOnly(
)
"""
def testArrayOfNumberOnly(self):
"""Test ArrayOfNumberOnly"""
# 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

@@ -0,0 +1,66 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.array_test import ArrayTest # noqa: E501
class TestArrayTest(unittest.TestCase):
"""ArrayTest unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ArrayTest:
"""Test ArrayTest
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 `ArrayTest`
"""
model = ArrayTest() # noqa: E501
if include_optional:
return ArrayTest(
array_of_string = [
''
],
array_array_of_integer = [
[
56
]
],
array_array_of_model = [
[
petstore_api.models.read_only_first.ReadOnlyFirst(
bar = '',
baz = '', )
]
]
)
else:
return ArrayTest(
)
"""
def testArrayTest(self):
"""Test ArrayTest"""
# 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

@@ -0,0 +1,55 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.basque_pig import BasquePig # noqa: E501
class TestBasquePig(unittest.TestCase):
"""BasquePig unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> BasquePig:
"""Test BasquePig
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 `BasquePig`
"""
model = BasquePig() # noqa: E501
if include_optional:
return BasquePig(
class_name = '',
color = ''
)
else:
return BasquePig(
class_name = '',
color = '',
)
"""
def testBasquePig(self):
"""Test BasquePig"""
# 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

@@ -0,0 +1,57 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.capitalization import Capitalization # noqa: E501
class TestCapitalization(unittest.TestCase):
"""Capitalization unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Capitalization:
"""Test Capitalization
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 `Capitalization`
"""
model = Capitalization() # noqa: E501
if include_optional:
return Capitalization(
small_camel = '',
capital_camel = '',
small_snake = '',
capital_snake = '',
sca_eth_flow_points = '',
att_name = ''
)
else:
return Capitalization(
)
"""
def testCapitalization(self):
"""Test Capitalization"""
# 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

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.cat import Cat # noqa: E501
class TestCat(unittest.TestCase):
"""Cat unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Cat:
"""Test Cat
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 `Cat`
"""
model = Cat() # noqa: E501
if include_optional:
return Cat(
declawed = True
)
else:
return Cat(
)
"""
def testCat(self):
"""Test Cat"""
# 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

@@ -0,0 +1,54 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.category import Category # noqa: E501
class TestCategory(unittest.TestCase):
"""Category unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Category:
"""Test Category
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 `Category`
"""
model = Category() # noqa: E501
if include_optional:
return Category(
id = 56,
name = 'default-name'
)
else:
return Category(
name = 'default-name',
)
"""
def testCategory(self):
"""Test Category"""
# 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

@@ -0,0 +1,60 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.circular_reference_model import CircularReferenceModel # noqa: E501
class TestCircularReferenceModel(unittest.TestCase):
"""CircularReferenceModel unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> CircularReferenceModel:
"""Test CircularReferenceModel
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 `CircularReferenceModel`
"""
model = CircularReferenceModel() # noqa: E501
if include_optional:
return CircularReferenceModel(
size = 56,
nested = petstore_api.models.first_ref.FirstRef(
category = '',
self_ref = petstore_api.models.second_ref.SecondRef(
category = '',
circular_ref = petstore_api.models.circular_reference_model.Circular-Reference-Model(
size = 56,
nested = petstore_api.models.first_ref.FirstRef(
category = '', ), ), ), )
)
else:
return CircularReferenceModel(
)
"""
def testCircularReferenceModel(self):
"""Test CircularReferenceModel"""
# 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

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.class_model import ClassModel # noqa: E501
class TestClassModel(unittest.TestCase):
"""ClassModel unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ClassModel:
"""Test ClassModel
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 `ClassModel`
"""
model = ClassModel() # noqa: E501
if include_optional:
return ClassModel(
var_class = ''
)
else:
return ClassModel(
)
"""
def testClassModel(self):
"""Test ClassModel"""
# 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

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.client import Client # noqa: E501
class TestClient(unittest.TestCase):
"""Client unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Client:
"""Test Client
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 `Client`
"""
model = Client() # noqa: E501
if include_optional:
return Client(
client = ''
)
else:
return Client(
)
"""
def testClient(self):
"""Test Client"""
# 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

@@ -0,0 +1,51 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.color import Color # noqa: E501
class TestColor(unittest.TestCase):
"""Color unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Color:
"""Test Color
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 `Color`
"""
model = Color() # noqa: E501
if include_optional:
return Color(
)
else:
return Color(
)
"""
def testColor(self):
"""Test Color"""
# 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

@@ -0,0 +1,57 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.creature import Creature # noqa: E501
class TestCreature(unittest.TestCase):
"""Creature unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Creature:
"""Test Creature
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 `Creature`
"""
model = Creature() # noqa: E501
if include_optional:
return Creature(
info = petstore_api.models.creature_info.CreatureInfo(
name = '', ),
type = ''
)
else:
return Creature(
info = petstore_api.models.creature_info.CreatureInfo(
name = '', ),
type = '',
)
"""
def testCreature(self):
"""Test Creature"""
# 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

@@ -0,0 +1,53 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.creature_info import CreatureInfo # noqa: E501
class TestCreatureInfo(unittest.TestCase):
"""CreatureInfo unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> CreatureInfo:
"""Test CreatureInfo
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 `CreatureInfo`
"""
model = CreatureInfo() # noqa: E501
if include_optional:
return CreatureInfo(
name = ''
)
else:
return CreatureInfo(
name = '',
)
"""
def testCreatureInfo(self):
"""Test CreatureInfo"""
# 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

@@ -0,0 +1,55 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.danish_pig import DanishPig # noqa: E501
class TestDanishPig(unittest.TestCase):
"""DanishPig unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DanishPig:
"""Test DanishPig
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 `DanishPig`
"""
model = DanishPig() # noqa: E501
if include_optional:
return DanishPig(
class_name = '',
size = 56
)
else:
return DanishPig(
class_name = '',
size = 56,
)
"""
def testDanishPig(self):
"""Test DanishPig"""
# 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

@@ -0,0 +1,37 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from petstore_api.api.default_api import DefaultApi # noqa: E501
class TestDefaultApi(unittest.TestCase):
"""DefaultApi unit test stubs"""
def setUp(self) -> None:
self.api = DefaultApi() # noqa: E501
def tearDown(self) -> None:
pass
def test_foo_get(self) -> None:
"""Test case for foo_get
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.deprecated_object import DeprecatedObject # noqa: E501
class TestDeprecatedObject(unittest.TestCase):
"""DeprecatedObject unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DeprecatedObject:
"""Test DeprecatedObject
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 `DeprecatedObject`
"""
model = DeprecatedObject() # noqa: E501
if include_optional:
return DeprecatedObject(
name = ''
)
else:
return DeprecatedObject(
)
"""
def testDeprecatedObject(self):
"""Test DeprecatedObject"""
# 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

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.dog import Dog # noqa: E501
class TestDog(unittest.TestCase):
"""Dog unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Dog:
"""Test Dog
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 `Dog`
"""
model = Dog() # noqa: E501
if include_optional:
return Dog(
breed = ''
)
else:
return Dog(
)
"""
def testDog(self):
"""Test Dog"""
# 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

@@ -0,0 +1,56 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.dummy_model import DummyModel # noqa: E501
class TestDummyModel(unittest.TestCase):
"""DummyModel unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> DummyModel:
"""Test DummyModel
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 `DummyModel`
"""
model = DummyModel() # noqa: E501
if include_optional:
return DummyModel(
category = '',
self_ref = petstore_api.models.self_reference_model.Self-Reference-Model(
size = 56,
nested = petstore_api.models.dummy_model.Dummy-Model(
category = '', ), )
)
else:
return DummyModel(
)
"""
def testDummyModel(self):
"""Test DummyModel"""
# 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

@@ -0,0 +1,55 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.enum_arrays import EnumArrays # noqa: E501
class TestEnumArrays(unittest.TestCase):
"""EnumArrays unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> EnumArrays:
"""Test EnumArrays
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 `EnumArrays`
"""
model = EnumArrays() # noqa: E501
if include_optional:
return EnumArrays(
just_symbol = '>=',
array_enum = [
'fish'
]
)
else:
return EnumArrays(
)
"""
def testEnumArrays(self):
"""Test EnumArrays"""
# 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

@@ -0,0 +1,34 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.enum_class import EnumClass # noqa: E501
class TestEnumClass(unittest.TestCase):
"""EnumClass unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEnumClass(self):
"""Test EnumClass"""
# inst = EnumClass()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,34 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.enum_string1 import EnumString1 # noqa: E501
class TestEnumString1(unittest.TestCase):
"""EnumString1 unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEnumString1(self):
"""Test EnumString1"""
# inst = EnumString1()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,34 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.enum_string2 import EnumString2 # noqa: E501
class TestEnumString2(unittest.TestCase):
"""EnumString2 unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEnumString2(self):
"""Test EnumString2"""
# inst = EnumString2()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,61 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.enum_test import EnumTest # noqa: E501
class TestEnumTest(unittest.TestCase):
"""EnumTest unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> EnumTest:
"""Test EnumTest
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 `EnumTest`
"""
model = EnumTest() # noqa: E501
if include_optional:
return EnumTest(
enum_string = 'UPPER',
enum_string_required = 'UPPER',
enum_integer_default = 1,
enum_integer = 1,
enum_number = 1.1,
outer_enum = 'placed',
outer_enum_integer = 2,
outer_enum_default_value = 'placed',
outer_enum_integer_default_value = -1
)
else:
return EnumTest(
enum_string_required = 'UPPER',
)
"""
def testEnumTest(self):
"""Test EnumTest"""
# 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

@@ -0,0 +1,175 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from petstore_api.api.fake_api import FakeApi # noqa: E501
class TestFakeApi(unittest.TestCase):
"""FakeApi unit test stubs"""
def setUp(self) -> None:
self.api = FakeApi() # noqa: E501
def tearDown(self) -> None:
pass
def test_fake_any_type_request_body(self) -> None:
"""Test case for fake_any_type_request_body
test any type request body # noqa: E501
"""
pass
def test_fake_enum_ref_query_parameter(self) -> None:
"""Test case for fake_enum_ref_query_parameter
test enum reference query parameter # noqa: E501
"""
pass
def test_fake_health_get(self) -> None:
"""Test case for fake_health_get
Health check endpoint # noqa: E501
"""
pass
def test_fake_http_signature_test(self) -> None:
"""Test case for fake_http_signature_test
test http signature authentication # noqa: E501
"""
pass
def test_fake_outer_boolean_serialize(self) -> None:
"""Test case for fake_outer_boolean_serialize
"""
pass
def test_fake_outer_composite_serialize(self) -> None:
"""Test case for fake_outer_composite_serialize
"""
pass
def test_fake_outer_number_serialize(self) -> None:
"""Test case for fake_outer_number_serialize
"""
pass
def test_fake_outer_string_serialize(self) -> None:
"""Test case for fake_outer_string_serialize
"""
pass
def test_fake_property_enum_integer_serialize(self) -> None:
"""Test case for fake_property_enum_integer_serialize
"""
pass
def test_fake_return_list_of_objects(self) -> None:
"""Test case for fake_return_list_of_objects
test returning list of objects # noqa: E501
"""
pass
def test_fake_uuid_example(self) -> None:
"""Test case for fake_uuid_example
test uuid example # noqa: E501
"""
pass
def test_test_body_with_binary(self) -> None:
"""Test case for test_body_with_binary
"""
pass
def test_test_body_with_file_schema(self) -> None:
"""Test case for test_body_with_file_schema
"""
pass
def test_test_body_with_query_params(self) -> None:
"""Test case for test_body_with_query_params
"""
pass
def test_test_client_model(self) -> None:
"""Test case for test_client_model
To test \"client\" model # noqa: E501
"""
pass
def test_test_date_time_query_parameter(self) -> None:
"""Test case for test_date_time_query_parameter
"""
pass
def test_test_endpoint_parameters(self) -> None:
"""Test case for test_endpoint_parameters
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # noqa: E501
"""
pass
def test_test_group_parameters(self) -> None:
"""Test case for test_group_parameters
Fake endpoint to test group parameters (optional) # noqa: E501
"""
pass
def test_test_inline_additional_properties(self) -> None:
"""Test case for test_inline_additional_properties
test inline additionalProperties # noqa: E501
"""
pass
def test_test_inline_freeform_additional_properties(self) -> None:
"""Test case for test_inline_freeform_additional_properties
test inline free-form additionalProperties # noqa: E501
"""
pass
def test_test_json_form_data(self) -> None:
"""Test case for test_json_form_data
test json serialization of form data # noqa: E501
"""
pass
def test_test_query_parameter_collection_format(self) -> None:
"""Test case for test_query_parameter_collection_format
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,38 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from petstore_api.api.fake_classname_tags123_api import FakeClassnameTags123Api # noqa: E501
class TestFakeClassnameTags123Api(unittest.TestCase):
"""FakeClassnameTags123Api unit test stubs"""
def setUp(self) -> None:
self.api = FakeClassnameTags123Api() # noqa: E501
def tearDown(self) -> None:
pass
def test_test_classname(self) -> None:
"""Test case for test_classname
To test class name in snake case # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.file import File # noqa: E501
class TestFile(unittest.TestCase):
"""File unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> File:
"""Test File
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 `File`
"""
model = File() # noqa: E501
if include_optional:
return File(
source_uri = ''
)
else:
return File(
)
"""
def testFile(self):
"""Test File"""
# 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

@@ -0,0 +1,57 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.file_schema_test_class import FileSchemaTestClass # noqa: E501
class TestFileSchemaTestClass(unittest.TestCase):
"""FileSchemaTestClass unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> FileSchemaTestClass:
"""Test FileSchemaTestClass
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 `FileSchemaTestClass`
"""
model = FileSchemaTestClass() # noqa: E501
if include_optional:
return FileSchemaTestClass(
file = petstore_api.models.file.File(
source_uri = '', ),
files = [
petstore_api.models.file.File(
source_uri = '', )
]
)
else:
return FileSchemaTestClass(
)
"""
def testFileSchemaTestClass(self):
"""Test FileSchemaTestClass"""
# 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

@@ -0,0 +1,58 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.first_ref import FirstRef # noqa: E501
class TestFirstRef(unittest.TestCase):
"""FirstRef unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> FirstRef:
"""Test FirstRef
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 `FirstRef`
"""
model = FirstRef() # noqa: E501
if include_optional:
return FirstRef(
category = '',
self_ref = petstore_api.models.second_ref.SecondRef(
category = '',
circular_ref = petstore_api.models.circular_reference_model.Circular-Reference-Model(
size = 56,
nested = petstore_api.models.first_ref.FirstRef(
category = '', ), ), )
)
else:
return FirstRef(
)
"""
def testFirstRef(self):
"""Test FirstRef"""
# 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

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.foo import Foo # noqa: E501
class TestFoo(unittest.TestCase):
"""Foo unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Foo:
"""Test Foo
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 `Foo`
"""
model = Foo() # noqa: E501
if include_optional:
return Foo(
bar = 'bar'
)
else:
return Foo(
)
"""
def testFoo(self):
"""Test Foo"""
# 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

@@ -0,0 +1,53 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.foo_get_default_response import FooGetDefaultResponse # noqa: E501
class TestFooGetDefaultResponse(unittest.TestCase):
"""FooGetDefaultResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> FooGetDefaultResponse:
"""Test FooGetDefaultResponse
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 `FooGetDefaultResponse`
"""
model = FooGetDefaultResponse() # noqa: E501
if include_optional:
return FooGetDefaultResponse(
string = petstore_api.models.foo.Foo(
bar = 'bar', )
)
else:
return FooGetDefaultResponse(
)
"""
def testFooGetDefaultResponse(self):
"""Test FooGetDefaultResponse"""
# 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

@@ -0,0 +1,71 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.format_test import FormatTest # noqa: E501
class TestFormatTest(unittest.TestCase):
"""FormatTest unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> FormatTest:
"""Test FormatTest
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 `FormatTest`
"""
model = FormatTest() # noqa: E501
if include_optional:
return FormatTest(
integer = 10,
int32 = 20,
int64 = 56,
number = 32.1,
float = 54.3,
double = 67.8,
decimal = 1,
string = 'a',
string_with_double_quote_pattern = 'this is \"something\"',
byte = 'YQ==',
binary = bytes(b'blah'),
var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
uuid = '72f98069-206d-4f12-9f12-3d1e525a8e84',
password = '0123456789',
pattern_with_digits = '0480728880',
pattern_with_digits_and_delimiter = 'image_480'
)
else:
return FormatTest(
number = 32.1,
var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
password = '0123456789',
)
"""
def testFormatTest(self):
"""Test FormatTest"""
# 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

@@ -0,0 +1,53 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.has_only_read_only import HasOnlyReadOnly # noqa: E501
class TestHasOnlyReadOnly(unittest.TestCase):
"""HasOnlyReadOnly unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> HasOnlyReadOnly:
"""Test HasOnlyReadOnly
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 `HasOnlyReadOnly`
"""
model = HasOnlyReadOnly() # noqa: E501
if include_optional:
return HasOnlyReadOnly(
bar = '',
foo = ''
)
else:
return HasOnlyReadOnly(
)
"""
def testHasOnlyReadOnly(self):
"""Test HasOnlyReadOnly"""
# 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

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.health_check_result import HealthCheckResult # noqa: E501
class TestHealthCheckResult(unittest.TestCase):
"""HealthCheckResult unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> HealthCheckResult:
"""Test HealthCheckResult
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 `HealthCheckResult`
"""
model = HealthCheckResult() # noqa: E501
if include_optional:
return HealthCheckResult(
nullable_message = ''
)
else:
return HealthCheckResult(
)
"""
def testHealthCheckResult(self):
"""Test HealthCheckResult"""
# 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

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.inner_dict_with_property import InnerDictWithProperty # noqa: E501
class TestInnerDictWithProperty(unittest.TestCase):
"""InnerDictWithProperty unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> InnerDictWithProperty:
"""Test InnerDictWithProperty
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 `InnerDictWithProperty`
"""
model = InnerDictWithProperty() # noqa: E501
if include_optional:
return InnerDictWithProperty(
a_property = None
)
else:
return InnerDictWithProperty(
)
"""
def testInnerDictWithProperty(self):
"""Test InnerDictWithProperty"""
# 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

@@ -0,0 +1,51 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.int_or_string import IntOrString # noqa: E501
class TestIntOrString(unittest.TestCase):
"""IntOrString unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> IntOrString:
"""Test IntOrString
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 `IntOrString`
"""
model = IntOrString() # noqa: E501
if include_optional:
return IntOrString(
)
else:
return IntOrString(
)
"""
def testIntOrString(self):
"""Test IntOrString"""
# 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

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.list import List # noqa: E501
class TestList(unittest.TestCase):
"""List unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> List:
"""Test List
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 `List`
"""
model = List() # noqa: E501
if include_optional:
return List(
var_123_list = ''
)
else:
return List(
)
"""
def testList(self):
"""Test List"""
# 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

@@ -0,0 +1,58 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.map_of_array_of_model import MapOfArrayOfModel # noqa: E501
class TestMapOfArrayOfModel(unittest.TestCase):
"""MapOfArrayOfModel unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> MapOfArrayOfModel:
"""Test MapOfArrayOfModel
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 `MapOfArrayOfModel`
"""
model = MapOfArrayOfModel() # noqa: E501
if include_optional:
return MapOfArrayOfModel(
shop_id_to_org_online_lip_map = {
'key' : [
petstore_api.models.tag.Tag(
id = 56,
name = '', )
]
}
)
else:
return MapOfArrayOfModel(
)
"""
def testMapOfArrayOfModel(self):
"""Test MapOfArrayOfModel"""
# 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

@@ -0,0 +1,65 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.map_test import MapTest # noqa: E501
class TestMapTest(unittest.TestCase):
"""MapTest unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> MapTest:
"""Test MapTest
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 `MapTest`
"""
model = MapTest() # noqa: E501
if include_optional:
return MapTest(
map_map_of_string = {
'key' : {
'key' : ''
}
},
map_of_enum_string = {
'UPPER' : 'UPPER'
},
direct_map = {
'key' : True
},
indirect_map = {
'key' : True
}
)
else:
return MapTest(
)
"""
def testMapTest(self):
"""Test MapTest"""
# 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

@@ -0,0 +1,58 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass # noqa: E501
class TestMixedPropertiesAndAdditionalPropertiesClass(unittest.TestCase):
"""MixedPropertiesAndAdditionalPropertiesClass unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> MixedPropertiesAndAdditionalPropertiesClass:
"""Test MixedPropertiesAndAdditionalPropertiesClass
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 `MixedPropertiesAndAdditionalPropertiesClass`
"""
model = MixedPropertiesAndAdditionalPropertiesClass() # noqa: E501
if include_optional:
return MixedPropertiesAndAdditionalPropertiesClass(
uuid = '',
date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
map = {
'key' : petstore_api.models.animal.Animal(
class_name = '',
color = 'red', )
}
)
else:
return MixedPropertiesAndAdditionalPropertiesClass(
)
"""
def testMixedPropertiesAndAdditionalPropertiesClass(self):
"""Test MixedPropertiesAndAdditionalPropertiesClass"""
# 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

@@ -0,0 +1,53 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.model200_response import Model200Response # noqa: E501
class TestModel200Response(unittest.TestCase):
"""Model200Response unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Model200Response:
"""Test Model200Response
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 `Model200Response`
"""
model = Model200Response() # noqa: E501
if include_optional:
return Model200Response(
name = 56,
var_class = ''
)
else:
return Model200Response(
)
"""
def testModel200Response(self):
"""Test Model200Response"""
# 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

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.model_return import ModelReturn # noqa: E501
class TestModelReturn(unittest.TestCase):
"""ModelReturn unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ModelReturn:
"""Test ModelReturn
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 `ModelReturn`
"""
model = ModelReturn() # noqa: E501
if include_optional:
return ModelReturn(
var_return = 56
)
else:
return ModelReturn(
)
"""
def testModelReturn(self):
"""Test ModelReturn"""
# 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

@@ -0,0 +1,56 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.name import Name # noqa: E501
class TestName(unittest.TestCase):
"""Name unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Name:
"""Test Name
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 `Name`
"""
model = Name() # noqa: E501
if include_optional:
return Name(
name = 56,
snake_case = 56,
var_property = '',
var_123_number = 56
)
else:
return Name(
name = 56,
)
"""
def testName(self):
"""Test Name"""
# 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

@@ -0,0 +1,77 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.nullable_class import NullableClass # noqa: E501
class TestNullableClass(unittest.TestCase):
"""NullableClass unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> NullableClass:
"""Test NullableClass
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 `NullableClass`
"""
model = NullableClass() # noqa: E501
if include_optional:
return NullableClass(
required_integer_prop = 56,
integer_prop = 56,
number_prop = 1.337,
boolean_prop = True,
string_prop = '',
date_prop = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
datetime_prop = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
array_nullable_prop = [
None
],
array_and_items_nullable_prop = [
None
],
array_items_nullable = [
None
],
object_nullable_prop = {
'key' : None
},
object_and_items_nullable_prop = {
'key' : None
},
object_items_nullable = {
'key' : None
}
)
else:
return NullableClass(
required_integer_prop = 56,
)
"""
def testNullableClass(self):
"""Test NullableClass"""
# 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

@@ -0,0 +1,55 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.nullable_property import NullableProperty # noqa: E501
class TestNullableProperty(unittest.TestCase):
"""NullableProperty unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> NullableProperty:
"""Test NullableProperty
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 `NullableProperty`
"""
model = NullableProperty() # noqa: E501
if include_optional:
return NullableProperty(
id = 56,
name = 'AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>'
)
else:
return NullableProperty(
id = 56,
name = 'AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>',
)
"""
def testNullableProperty(self):
"""Test NullableProperty"""
# 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

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.number_only import NumberOnly # noqa: E501
class TestNumberOnly(unittest.TestCase):
"""NumberOnly unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> NumberOnly:
"""Test NumberOnly
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 `NumberOnly`
"""
model = NumberOnly() # noqa: E501
if include_optional:
return NumberOnly(
just_number = 1.337
)
else:
return NumberOnly(
)
"""
def testNumberOnly(self):
"""Test NumberOnly"""
# 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

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.object_to_test_additional_properties import ObjectToTestAdditionalProperties # noqa: E501
class TestObjectToTestAdditionalProperties(unittest.TestCase):
"""ObjectToTestAdditionalProperties unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ObjectToTestAdditionalProperties:
"""Test ObjectToTestAdditionalProperties
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 `ObjectToTestAdditionalProperties`
"""
model = ObjectToTestAdditionalProperties() # noqa: E501
if include_optional:
return ObjectToTestAdditionalProperties(
var_property = True
)
else:
return ObjectToTestAdditionalProperties(
)
"""
def testObjectToTestAdditionalProperties(self):
"""Test ObjectToTestAdditionalProperties"""
# 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

@@ -0,0 +1,58 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.object_with_deprecated_fields import ObjectWithDeprecatedFields # noqa: E501
class TestObjectWithDeprecatedFields(unittest.TestCase):
"""ObjectWithDeprecatedFields unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ObjectWithDeprecatedFields:
"""Test ObjectWithDeprecatedFields
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 `ObjectWithDeprecatedFields`
"""
model = ObjectWithDeprecatedFields() # noqa: E501
if include_optional:
return ObjectWithDeprecatedFields(
uuid = '',
id = 1.337,
deprecated_ref = petstore_api.models.deprecated_object.DeprecatedObject(
name = '', ),
bars = [
'bar'
]
)
else:
return ObjectWithDeprecatedFields(
)
"""
def testObjectWithDeprecatedFields(self):
"""Test ObjectWithDeprecatedFields"""
# 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

@@ -0,0 +1,51 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.one_of_enum_string import OneOfEnumString # noqa: E501
class TestOneOfEnumString(unittest.TestCase):
"""OneOfEnumString unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> OneOfEnumString:
"""Test OneOfEnumString
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 `OneOfEnumString`
"""
model = OneOfEnumString() # noqa: E501
if include_optional:
return OneOfEnumString(
)
else:
return OneOfEnumString(
)
"""
def testOneOfEnumString(self):
"""Test OneOfEnumString"""
# 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

@@ -0,0 +1,57 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.order import Order # noqa: E501
class TestOrder(unittest.TestCase):
"""Order unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Order:
"""Test Order
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 `Order`
"""
model = Order() # noqa: E501
if include_optional:
return Order(
id = 56,
pet_id = 56,
quantity = 56,
ship_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
status = 'placed',
complete = True
)
else:
return Order(
)
"""
def testOrder(self):
"""Test Order"""
# 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

@@ -0,0 +1,54 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.outer_composite import OuterComposite # noqa: E501
class TestOuterComposite(unittest.TestCase):
"""OuterComposite unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> OuterComposite:
"""Test OuterComposite
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 `OuterComposite`
"""
model = OuterComposite() # noqa: E501
if include_optional:
return OuterComposite(
my_number = 1.337,
my_string = '',
my_boolean = True
)
else:
return OuterComposite(
)
"""
def testOuterComposite(self):
"""Test OuterComposite"""
# 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

@@ -0,0 +1,34 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.outer_enum import OuterEnum # noqa: E501
class TestOuterEnum(unittest.TestCase):
"""OuterEnum unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testOuterEnum(self):
"""Test OuterEnum"""
# inst = OuterEnum()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,34 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.outer_enum_default_value import OuterEnumDefaultValue # noqa: E501
class TestOuterEnumDefaultValue(unittest.TestCase):
"""OuterEnumDefaultValue unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testOuterEnumDefaultValue(self):
"""Test OuterEnumDefaultValue"""
# inst = OuterEnumDefaultValue()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,34 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.outer_enum_integer import OuterEnumInteger # noqa: E501
class TestOuterEnumInteger(unittest.TestCase):
"""OuterEnumInteger unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testOuterEnumInteger(self):
"""Test OuterEnumInteger"""
# inst = OuterEnumInteger()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,34 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue # noqa: E501
class TestOuterEnumIntegerDefaultValue(unittest.TestCase):
"""OuterEnumIntegerDefaultValue unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testOuterEnumIntegerDefaultValue(self):
"""Test OuterEnumIntegerDefaultValue"""
# inst = OuterEnumIntegerDefaultValue()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,54 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.outer_object_with_enum_property import OuterObjectWithEnumProperty # noqa: E501
class TestOuterObjectWithEnumProperty(unittest.TestCase):
"""OuterObjectWithEnumProperty unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> OuterObjectWithEnumProperty:
"""Test OuterObjectWithEnumProperty
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 `OuterObjectWithEnumProperty`
"""
model = OuterObjectWithEnumProperty() # noqa: E501
if include_optional:
return OuterObjectWithEnumProperty(
str_value = 'placed',
value = 2
)
else:
return OuterObjectWithEnumProperty(
value = 2,
)
"""
def testOuterObjectWithEnumProperty(self):
"""Test OuterObjectWithEnumProperty"""
# 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

@@ -0,0 +1,55 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.parent import Parent # noqa: E501
class TestParent(unittest.TestCase):
"""Parent unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Parent:
"""Test Parent
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 `Parent`
"""
model = Parent() # noqa: E501
if include_optional:
return Parent(
optional_dict = {
'key' : petstore_api.models.inner_dict_with_property.InnerDictWithProperty(
a_property = petstore_api.models.a_property.aProperty(), )
}
)
else:
return Parent(
)
"""
def testParent(self):
"""Test Parent"""
# 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

@@ -0,0 +1,55 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.parent_with_optional_dict import ParentWithOptionalDict # noqa: E501
class TestParentWithOptionalDict(unittest.TestCase):
"""ParentWithOptionalDict unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ParentWithOptionalDict:
"""Test ParentWithOptionalDict
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 `ParentWithOptionalDict`
"""
model = ParentWithOptionalDict() # noqa: E501
if include_optional:
return ParentWithOptionalDict(
optional_dict = {
'key' : petstore_api.models.inner_dict_with_property.InnerDictWithProperty(
a_property = petstore_api.models.a_property.aProperty(), )
}
)
else:
return ParentWithOptionalDict(
)
"""
def testParentWithOptionalDict(self):
"""Test ParentWithOptionalDict"""
# 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

@@ -0,0 +1,69 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.pet import Pet # noqa: E501
class TestPet(unittest.TestCase):
"""Pet unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Pet:
"""Test Pet
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 `Pet`
"""
model = Pet() # noqa: E501
if include_optional:
return Pet(
id = 56,
category = petstore_api.models.category.Category(
id = 56,
name = 'default-name', ),
name = 'doggie',
photo_urls = [
''
],
tags = [
petstore_api.models.tag.Tag(
id = 56,
name = '', )
],
status = 'available'
)
else:
return Pet(
name = 'doggie',
photo_urls = [
''
],
)
"""
def testPet(self):
"""Test Pet"""
# 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

@@ -0,0 +1,94 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from petstore_api.api.pet_api import PetApi # noqa: E501
class TestPetApi(unittest.TestCase):
"""PetApi unit test stubs"""
def setUp(self) -> None:
self.api = PetApi() # noqa: E501
def tearDown(self) -> None:
pass
def test_add_pet(self) -> None:
"""Test case for add_pet
Add a new pet to the store # noqa: E501
"""
pass
def test_delete_pet(self) -> None:
"""Test case for delete_pet
Deletes a pet # noqa: E501
"""
pass
def test_find_pets_by_status(self) -> None:
"""Test case for find_pets_by_status
Finds Pets by status # noqa: E501
"""
pass
def test_find_pets_by_tags(self) -> None:
"""Test case for find_pets_by_tags
Finds Pets by tags # noqa: E501
"""
pass
def test_get_pet_by_id(self) -> None:
"""Test case for get_pet_by_id
Find pet by ID # noqa: E501
"""
pass
def test_update_pet(self) -> None:
"""Test case for update_pet
Update an existing pet # noqa: E501
"""
pass
def test_update_pet_with_form(self) -> None:
"""Test case for update_pet_with_form
Updates a pet in the store with form data # noqa: E501
"""
pass
def test_upload_file(self) -> None:
"""Test case for upload_file
uploads an image # noqa: E501
"""
pass
def test_upload_file_with_required_file(self) -> None:
"""Test case for upload_file_with_required_file
uploads an image (required) # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,57 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.pig import Pig # noqa: E501
class TestPig(unittest.TestCase):
"""Pig unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Pig:
"""Test Pig
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 `Pig`
"""
model = Pig() # noqa: E501
if include_optional:
return Pig(
class_name = '',
color = '',
size = 56
)
else:
return Pig(
class_name = '',
color = '',
size = 56,
)
"""
def testPig(self):
"""Test Pig"""
# 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

@@ -0,0 +1,54 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.property_name_collision import PropertyNameCollision # noqa: E501
class TestPropertyNameCollision(unittest.TestCase):
"""PropertyNameCollision unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> PropertyNameCollision:
"""Test PropertyNameCollision
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 `PropertyNameCollision`
"""
model = PropertyNameCollision() # noqa: E501
if include_optional:
return PropertyNameCollision(
underscore_type = '',
type = '',
type_with_underscore = ''
)
else:
return PropertyNameCollision(
)
"""
def testPropertyNameCollision(self):
"""Test PropertyNameCollision"""
# 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

@@ -0,0 +1,53 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.read_only_first import ReadOnlyFirst # noqa: E501
class TestReadOnlyFirst(unittest.TestCase):
"""ReadOnlyFirst unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ReadOnlyFirst:
"""Test ReadOnlyFirst
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 `ReadOnlyFirst`
"""
model = ReadOnlyFirst() # noqa: E501
if include_optional:
return ReadOnlyFirst(
bar = '',
baz = ''
)
else:
return ReadOnlyFirst(
)
"""
def testReadOnlyFirst(self):
"""Test ReadOnlyFirst"""
# 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

@@ -0,0 +1,58 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.second_ref import SecondRef # noqa: E501
class TestSecondRef(unittest.TestCase):
"""SecondRef unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> SecondRef:
"""Test SecondRef
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 `SecondRef`
"""
model = SecondRef() # noqa: E501
if include_optional:
return SecondRef(
category = '',
circular_ref = petstore_api.models.circular_reference_model.Circular-Reference-Model(
size = 56,
nested = petstore_api.models.first_ref.FirstRef(
category = '',
self_ref = petstore_api.models.second_ref.SecondRef(
category = '', ), ), )
)
else:
return SecondRef(
)
"""
def testSecondRef(self):
"""Test SecondRef"""
# 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

@@ -0,0 +1,58 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.self_reference_model import SelfReferenceModel # noqa: E501
class TestSelfReferenceModel(unittest.TestCase):
"""SelfReferenceModel unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> SelfReferenceModel:
"""Test SelfReferenceModel
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 `SelfReferenceModel`
"""
model = SelfReferenceModel() # noqa: E501
if include_optional:
return SelfReferenceModel(
size = 56,
nested = petstore_api.models.dummy_model.Dummy-Model(
category = '',
self_ref = petstore_api.models.self_reference_model.Self-Reference-Model(
size = 56,
nested = petstore_api.models.dummy_model.Dummy-Model(
category = '', ), ), )
)
else:
return SelfReferenceModel(
)
"""
def testSelfReferenceModel(self):
"""Test SelfReferenceModel"""
# 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

@@ -0,0 +1,34 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.single_ref_type import SingleRefType # noqa: E501
class TestSingleRefType(unittest.TestCase):
"""SingleRefType unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testSingleRefType(self):
"""Test SingleRefType"""
# inst = SingleRefType()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,34 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.special_character_enum import SpecialCharacterEnum # noqa: E501
class TestSpecialCharacterEnum(unittest.TestCase):
"""SpecialCharacterEnum unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testSpecialCharacterEnum(self):
"""Test SpecialCharacterEnum"""
# inst = SpecialCharacterEnum()
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.special_model_name import SpecialModelName # noqa: E501
class TestSpecialModelName(unittest.TestCase):
"""SpecialModelName unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> SpecialModelName:
"""Test SpecialModelName
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 `SpecialModelName`
"""
model = SpecialModelName() # noqa: E501
if include_optional:
return SpecialModelName(
special_property_name = 56
)
else:
return SpecialModelName(
)
"""
def testSpecialModelName(self):
"""Test SpecialModelName"""
# 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

@@ -0,0 +1,56 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.special_name import SpecialName # noqa: E501
class TestSpecialName(unittest.TestCase):
"""SpecialName unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> SpecialName:
"""Test SpecialName
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 `SpecialName`
"""
model = SpecialName() # noqa: E501
if include_optional:
return SpecialName(
var_property = 56,
var_async = petstore_api.models.category.Category(
id = 56,
name = 'default-name', ),
var_schema = 'available'
)
else:
return SpecialName(
)
"""
def testSpecialName(self):
"""Test SpecialName"""
# 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

@@ -0,0 +1,59 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from petstore_api.api.store_api import StoreApi # noqa: E501
class TestStoreApi(unittest.TestCase):
"""StoreApi unit test stubs"""
def setUp(self) -> None:
self.api = StoreApi() # noqa: E501
def tearDown(self) -> None:
pass
def test_delete_order(self) -> None:
"""Test case for delete_order
Delete purchase order by ID # noqa: E501
"""
pass
def test_get_inventory(self) -> None:
"""Test case for get_inventory
Returns pet inventories by status # noqa: E501
"""
pass
def test_get_order_by_id(self) -> None:
"""Test case for get_order_by_id
Find purchase order by ID # noqa: E501
"""
pass
def test_place_order(self) -> None:
"""Test case for place_order
Place an order for a pet # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,53 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.tag import Tag # noqa: E501
class TestTag(unittest.TestCase):
"""Tag unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Tag:
"""Test Tag
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 `Tag`
"""
model = Tag() # noqa: E501
if include_optional:
return Tag(
id = 56,
name = ''
)
else:
return Tag(
)
"""
def testTag(self):
"""Test Tag"""
# 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

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.test_inline_freeform_additional_properties_request import TestInlineFreeformAdditionalPropertiesRequest # noqa: E501
class TestTestInlineFreeformAdditionalPropertiesRequest(unittest.TestCase):
"""TestInlineFreeformAdditionalPropertiesRequest unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> TestInlineFreeformAdditionalPropertiesRequest:
"""Test TestInlineFreeformAdditionalPropertiesRequest
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 `TestInlineFreeformAdditionalPropertiesRequest`
"""
model = TestInlineFreeformAdditionalPropertiesRequest() # noqa: E501
if include_optional:
return TestInlineFreeformAdditionalPropertiesRequest(
some_property = ''
)
else:
return TestInlineFreeformAdditionalPropertiesRequest(
)
"""
def testTestInlineFreeformAdditionalPropertiesRequest(self):
"""Test TestInlineFreeformAdditionalPropertiesRequest"""
# 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

@@ -0,0 +1,52 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.tiger import Tiger # noqa: E501
class TestTiger(unittest.TestCase):
"""Tiger unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Tiger:
"""Test Tiger
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 `Tiger`
"""
model = Tiger() # noqa: E501
if include_optional:
return Tiger(
skill = ''
)
else:
return Tiger(
)
"""
def testTiger(self):
"""Test Tiger"""
# 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

@@ -0,0 +1,59 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.user import User # noqa: E501
class TestUser(unittest.TestCase):
"""User unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> User:
"""Test User
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 `User`
"""
model = User() # noqa: E501
if include_optional:
return User(
id = 56,
username = '',
first_name = '',
last_name = '',
email = '',
password = '',
phone = '',
user_status = 56
)
else:
return User(
)
"""
def testUser(self):
"""Test User"""
# 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

@@ -0,0 +1,87 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from petstore_api.api.user_api import UserApi # noqa: E501
class TestUserApi(unittest.TestCase):
"""UserApi unit test stubs"""
def setUp(self) -> None:
self.api = UserApi() # noqa: E501
def tearDown(self) -> None:
pass
def test_create_user(self) -> None:
"""Test case for create_user
Create user # noqa: E501
"""
pass
def test_create_users_with_array_input(self) -> None:
"""Test case for create_users_with_array_input
Creates list of users with given input array # noqa: E501
"""
pass
def test_create_users_with_list_input(self) -> None:
"""Test case for create_users_with_list_input
Creates list of users with given input array # noqa: E501
"""
pass
def test_delete_user(self) -> None:
"""Test case for delete_user
Delete user # noqa: E501
"""
pass
def test_get_user_by_name(self) -> None:
"""Test case for get_user_by_name
Get user by user name # noqa: E501
"""
pass
def test_login_user(self) -> None:
"""Test case for login_user
Logs user into the system # noqa: E501
"""
pass
def test_logout_user(self) -> None:
"""Test case for logout_user
Logs out current logged in user session # noqa: E501
"""
pass
def test_update_user(self) -> None:
"""Test case for update_user
Updated user # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,54 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
import datetime
from petstore_api.models.with_nested_one_of import WithNestedOneOf # noqa: E501
class TestWithNestedOneOf(unittest.TestCase):
"""WithNestedOneOf unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> WithNestedOneOf:
"""Test WithNestedOneOf
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 `WithNestedOneOf`
"""
model = WithNestedOneOf() # noqa: E501
if include_optional:
return WithNestedOneOf(
size = 56,
nested_pig = None,
nested_oneof_enum_string = None
)
else:
return WithNestedOneOf(
)
"""
def testWithNestedOneOf(self):
"""Test WithNestedOneOf"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()