forked from loafle/openapi-generator-original
python: test with more modern versions (#19452)
Python 3.12 has been released in October 2023, it should be tested in the CI. Python 3.7 is not maintained anymore, removing it from the minimum required version in `pyproject.toml` files.
This commit is contained in:
parent
b3e72feaa9
commit
40967a3d38
2
.github/workflows/samples-postman.yaml
vendored
2
.github/workflows/samples-postman.yaml
vendored
@ -17,7 +17,7 @@ jobs:
|
||||
# schema
|
||||
- samples/schema/postman-collection
|
||||
python-version:
|
||||
- "3.11"
|
||||
- "3.12"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
|
@ -19,6 +19,7 @@ jobs:
|
||||
- "3.9"
|
||||
- "3.10"
|
||||
- "3.11"
|
||||
- "3.12"
|
||||
sample:
|
||||
- samples/openapi3/client/petstore/python-aiohttp
|
||||
- samples/openapi3/client/petstore/python
|
||||
|
@ -17,11 +17,11 @@ jobs:
|
||||
# clients
|
||||
- samples/client/echo_api/python-pydantic-v1/
|
||||
python-version:
|
||||
- "3.7"
|
||||
- "3.8"
|
||||
- "3.9"
|
||||
- "3.10"
|
||||
- "3.11"
|
||||
- "3.12"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
|
@ -19,6 +19,7 @@ jobs:
|
||||
- "3.9"
|
||||
- "3.10"
|
||||
- "3.11"
|
||||
- "3.12"
|
||||
sample:
|
||||
- samples/openapi3/client/petstore/python-pydantic-v1-aiohttp
|
||||
- samples/openapi3/client/petstore/python-pydantic-v1
|
||||
|
2
.github/workflows/samples-python-server.yaml
vendored
2
.github/workflows/samples-python-server.yaml
vendored
@ -21,7 +21,7 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.7'
|
||||
python-version: '3.9'
|
||||
- name: Test
|
||||
working-directory: ${{ matrix.sample }}
|
||||
run: make test-all
|
||||
|
@ -7,17 +7,31 @@ import unittest
|
||||
from {{apiPackage}}.{{classFilename}} import {{classname}} # noqa: E501
|
||||
|
||||
|
||||
class {{#operations}}Test{{classname}}(unittest.TestCase):
|
||||
class {{#operations}}Test{{classname}}(unittest.{{#asyncio}}IsolatedAsyncio{{/asyncio}}TestCase):
|
||||
"""{{classname}} unit test stubs"""
|
||||
|
||||
{{#asyncio}}
|
||||
async def asyncSetUp(self) -> None:
|
||||
self.api = {{classname}}()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
{{/asyncio}}
|
||||
{{^asyncio}}
|
||||
def setUp(self) -> None:
|
||||
self.api = {{classname}}() # noqa: E501
|
||||
self.api = {{classname}}()
|
||||
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
{{/asyncio}}
|
||||
|
||||
{{#operation}}
|
||||
{{#asyncio}}
|
||||
async def test_{{operationId}}(self) -> None:
|
||||
{{/asyncio}}
|
||||
{{^asyncio}}
|
||||
def test_{{operationId}}(self) -> None:
|
||||
{{/asyncio}}
|
||||
"""Test case for {{{operationId}}}
|
||||
|
||||
{{#summary}}
|
||||
|
@ -14,7 +14,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
||||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"]
|
||||
include = ["{{packageName}}/py.typed"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.7"
|
||||
python = "^3.8"
|
||||
|
||||
urllib3 = ">= 1.25.3"
|
||||
python-dateutil = ">=2.8.2"
|
||||
|
@ -7,17 +7,31 @@ import unittest
|
||||
from {{apiPackage}}.{{classFilename}} import {{classname}}
|
||||
|
||||
|
||||
class {{#operations}}Test{{classname}}(unittest.TestCase):
|
||||
class {{#operations}}Test{{classname}}(unittest.{{#asyncio}}IsolatedAsyncio{{/asyncio}}TestCase):
|
||||
"""{{classname}} unit test stubs"""
|
||||
|
||||
{{#asyncio}}
|
||||
async def asyncSetUp(self) -> None:
|
||||
self.api = {{classname}}()
|
||||
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
{{/asyncio}}
|
||||
{{^asyncio}}
|
||||
def setUp(self) -> None:
|
||||
self.api = {{classname}}()
|
||||
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
{{/asyncio}}
|
||||
|
||||
{{#operation}}
|
||||
{{#asyncio}}
|
||||
async def test_{{operationId}}(self) -> None:
|
||||
{{/asyncio}}
|
||||
{{^asyncio}}
|
||||
def test_{{operationId}}(self) -> None:
|
||||
{{/asyncio}}
|
||||
"""Test case for {{{operationId}}}
|
||||
|
||||
{{#summary}}
|
||||
|
@ -14,7 +14,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
||||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"]
|
||||
include = ["{{packageName}}/py.typed"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.7"
|
||||
python = "^3.8"
|
||||
|
||||
urllib3 = ">= 1.25.3"
|
||||
python-dateutil = ">=2.8.2"
|
||||
@ -33,7 +33,7 @@ pytest = ">=7.2.1"
|
||||
tox = ">=3.9.0"
|
||||
flake8 = ">=4.0.0"
|
||||
types-python-dateutil = ">=2.8.19.14"
|
||||
mypy = "1.4.1"
|
||||
mypy = ">=1.5"
|
||||
|
||||
|
||||
[build-system]
|
||||
|
@ -13,7 +13,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
||||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "Echo Server API"]
|
||||
include = ["openapi_client/py.typed"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.7"
|
||||
python = "^3.8"
|
||||
|
||||
urllib3 = ">= 1.25.3"
|
||||
python-dateutil = ">=2.8.2"
|
||||
@ -22,7 +22,7 @@ pytest = ">=7.2.1"
|
||||
tox = ">=3.9.0"
|
||||
flake8 = ">=4.0.0"
|
||||
types-python-dateutil = ">=2.8.19.14"
|
||||
mypy = "1.4.1"
|
||||
mypy = ">=1.5"
|
||||
|
||||
|
||||
[build-system]
|
||||
|
@ -13,7 +13,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
||||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "Echo Server API"]
|
||||
include = ["openapi_client/py.typed"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.7"
|
||||
python = "^3.8"
|
||||
|
||||
urllib3 = ">= 1.25.3"
|
||||
python-dateutil = ">=2.8.2"
|
||||
|
@ -13,7 +13,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
||||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "Echo Server API"]
|
||||
include = ["openapi_client/py.typed"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.7"
|
||||
python = "^3.8"
|
||||
|
||||
urllib3 = ">= 1.25.3"
|
||||
python-dateutil = ">=2.8.2"
|
||||
@ -22,7 +22,7 @@ pytest = ">=7.2.1"
|
||||
tox = ">=3.9.0"
|
||||
flake8 = ">=4.0.0"
|
||||
types-python-dateutil = ">=2.8.19.14"
|
||||
mypy = "1.4.1"
|
||||
mypy = ">=1.5"
|
||||
|
||||
|
||||
[build-system]
|
||||
|
@ -13,7 +13,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
||||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"]
|
||||
include = ["petstore_api/py.typed"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.7"
|
||||
python = "^3.8"
|
||||
|
||||
urllib3 = ">= 1.25.3"
|
||||
python-dateutil = ">=2.8.2"
|
||||
@ -26,7 +26,7 @@ pytest = ">=7.2.1"
|
||||
tox = ">=3.9.0"
|
||||
flake8 = ">=4.0.0"
|
||||
types-python-dateutil = ">=2.8.19.14"
|
||||
mypy = "1.4.1"
|
||||
mypy = ">=1.5"
|
||||
|
||||
|
||||
[build-system]
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.additional_properties_any_type import AdditionalPropertiesAnyType # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.additional_properties_any_type import AdditionalPropertiesAnyType
|
||||
|
||||
class TestAdditionalPropertiesAnyType(unittest.TestCase):
|
||||
"""AdditionalPropertiesAnyType unit test stubs"""
|
||||
@ -28,19 +25,19 @@ class TestAdditionalPropertiesAnyType(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> AdditionalPropertiesAnyType:
|
||||
"""Test AdditionalPropertiesAnyType
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.additional_properties_any_type.AdditionalPropertiesAnyType() # noqa: E501
|
||||
if include_optional :
|
||||
model = AdditionalPropertiesAnyType()
|
||||
if include_optional:
|
||||
return AdditionalPropertiesAnyType(
|
||||
name = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return AdditionalPropertiesAnyType(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.additional_properties_class import AdditionalPropertiesClass # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.additional_properties_class import AdditionalPropertiesClass
|
||||
|
||||
class TestAdditionalPropertiesClass(unittest.TestCase):
|
||||
"""AdditionalPropertiesClass unit test stubs"""
|
||||
@ -28,15 +25,15 @@ class TestAdditionalPropertiesClass(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> AdditionalPropertiesClass:
|
||||
"""Test AdditionalPropertiesClass
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.additional_properties_class.AdditionalPropertiesClass() # noqa: E501
|
||||
if include_optional :
|
||||
model = AdditionalPropertiesClass()
|
||||
if include_optional:
|
||||
return AdditionalPropertiesClass(
|
||||
map_property = {
|
||||
'key' : ''
|
||||
@ -47,7 +44,7 @@ class TestAdditionalPropertiesClass(unittest.TestCase):
|
||||
}
|
||||
}
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return AdditionalPropertiesClass(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.additional_properties_object import AdditionalPropertiesObject # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.additional_properties_object import AdditionalPropertiesObject
|
||||
|
||||
class TestAdditionalPropertiesObject(unittest.TestCase):
|
||||
"""AdditionalPropertiesObject unit test stubs"""
|
||||
@ -28,19 +25,19 @@ class TestAdditionalPropertiesObject(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> AdditionalPropertiesObject:
|
||||
"""Test AdditionalPropertiesObject
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.additional_properties_object.AdditionalPropertiesObject() # noqa: E501
|
||||
if include_optional :
|
||||
model = AdditionalPropertiesObject()
|
||||
if include_optional:
|
||||
return AdditionalPropertiesObject(
|
||||
name = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return AdditionalPropertiesObject(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.additional_properties_with_description_only import AdditionalPropertiesWithDescriptionOnly # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.additional_properties_with_description_only import AdditionalPropertiesWithDescriptionOnly
|
||||
|
||||
class TestAdditionalPropertiesWithDescriptionOnly(unittest.TestCase):
|
||||
"""AdditionalPropertiesWithDescriptionOnly unit test stubs"""
|
||||
@ -28,19 +25,19 @@ class TestAdditionalPropertiesWithDescriptionOnly(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> AdditionalPropertiesWithDescriptionOnly:
|
||||
"""Test AdditionalPropertiesWithDescriptionOnly
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.additional_properties_with_description_only.AdditionalPropertiesWithDescriptionOnly() # noqa: E501
|
||||
if include_optional :
|
||||
model = AdditionalPropertiesWithDescriptionOnly()
|
||||
if include_optional:
|
||||
return AdditionalPropertiesWithDescriptionOnly(
|
||||
name = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return AdditionalPropertiesWithDescriptionOnly(
|
||||
)
|
||||
"""
|
||||
|
@ -27,7 +27,7 @@ class TestAllOfSuperModel(unittest.TestCase):
|
||||
|
||||
def make_instance(self, include_optional) -> AllOfSuperModel:
|
||||
"""Test AllOfSuperModel
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 `AllOfSuperModel`
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.all_of_with_single_ref import AllOfWithSingleRef # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.all_of_with_single_ref import AllOfWithSingleRef
|
||||
|
||||
class TestAllOfWithSingleRef(unittest.TestCase):
|
||||
"""AllOfWithSingleRef unit test stubs"""
|
||||
@ -28,20 +25,23 @@ class TestAllOfWithSingleRef(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> AllOfWithSingleRef:
|
||||
"""Test AllOfWithSingleRef
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.all_of_with_single_ref.AllOfWithSingleRef() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `AllOfWithSingleRef`
|
||||
"""
|
||||
model = AllOfWithSingleRef()
|
||||
if include_optional:
|
||||
return AllOfWithSingleRef(
|
||||
username = '',
|
||||
single_ref_type = None
|
||||
single_ref_type = 'admin'
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return AllOfWithSingleRef(
|
||||
)
|
||||
"""
|
||||
|
||||
def testAllOfWithSingleRef(self):
|
||||
"""Test AllOfWithSingleRef"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.animal import Animal # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.animal import Animal
|
||||
|
||||
class TestAnimal(unittest.TestCase):
|
||||
"""Animal unit test stubs"""
|
||||
@ -28,21 +25,24 @@ class TestAnimal(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Animal:
|
||||
"""Test Animal
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.animal.Animal() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `Animal`
|
||||
"""
|
||||
model = Animal()
|
||||
if include_optional:
|
||||
return Animal(
|
||||
class_name = '',
|
||||
color = 'red'
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Animal(
|
||||
class_name = '',
|
||||
)
|
||||
"""
|
||||
|
||||
def testAnimal(self):
|
||||
"""Test Animal"""
|
||||
|
@ -3,35 +3,33 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.api.another_fake_api import AnotherFakeApi # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.api.another_fake_api import AnotherFakeApi
|
||||
|
||||
|
||||
class TestAnotherFakeApi(unittest.TestCase):
|
||||
class TestAnotherFakeApi(unittest.IsolatedAsyncioTestCase):
|
||||
"""AnotherFakeApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = petstore_api.api.another_fake_api.AnotherFakeApi() # noqa: E501
|
||||
async def asyncSetUp(self) -> None:
|
||||
self.api = AnotherFakeApi()
|
||||
|
||||
def tearDown(self):
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_call_123_test_special_tags(self):
|
||||
async def test_call_123_test_special_tags(self) -> None:
|
||||
"""Test case for call_123_test_special_tags
|
||||
|
||||
To test special tags # noqa: E501
|
||||
To test special tags
|
||||
"""
|
||||
pass
|
||||
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.any_of_color import AnyOfColor # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.any_of_color import AnyOfColor
|
||||
|
||||
class TestAnyOfColor(unittest.TestCase):
|
||||
"""AnyOfColor unit test stubs"""
|
||||
@ -28,18 +25,18 @@ class TestAnyOfColor(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> AnyOfColor:
|
||||
"""Test AnyOfColor
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.any_of_color.AnyOfColor() # noqa: E501
|
||||
if include_optional :
|
||||
model = AnyOfColor()
|
||||
if include_optional:
|
||||
return AnyOfColor(
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return AnyOfColor(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.any_of_pig import AnyOfPig # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.any_of_pig import AnyOfPig
|
||||
|
||||
class TestAnyOfPig(unittest.TestCase):
|
||||
"""AnyOfPig unit test stubs"""
|
||||
@ -28,24 +25,27 @@ class TestAnyOfPig(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> AnyOfPig:
|
||||
"""Test AnyOfPig
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.any_of_pig.AnyOfPig() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `AnyOfPig`
|
||||
"""
|
||||
model = AnyOfPig()
|
||||
if include_optional:
|
||||
return AnyOfPig(
|
||||
class_name = '',
|
||||
color = '',
|
||||
size = 56
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return AnyOfPig(
|
||||
class_name = '',
|
||||
color = '',
|
||||
size = 56,
|
||||
)
|
||||
"""
|
||||
|
||||
def testAnyOfPig(self):
|
||||
"""Test AnyOfPig"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.array_of_array_of_model import ArrayOfArrayOfModel # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.array_of_array_of_model import ArrayOfArrayOfModel
|
||||
|
||||
class TestArrayOfArrayOfModel(unittest.TestCase):
|
||||
"""ArrayOfArrayOfModel unit test stubs"""
|
||||
@ -28,15 +25,15 @@ class TestArrayOfArrayOfModel(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> ArrayOfArrayOfModel:
|
||||
"""Test ArrayOfArrayOfModel
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.array_of_array_of_model.ArrayOfArrayOfModel() # noqa: E501
|
||||
if include_optional :
|
||||
model = ArrayOfArrayOfModel()
|
||||
if include_optional:
|
||||
return ArrayOfArrayOfModel(
|
||||
another_property = [
|
||||
[
|
||||
@ -46,7 +43,7 @@ class TestArrayOfArrayOfModel(unittest.TestCase):
|
||||
]
|
||||
]
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return ArrayOfArrayOfModel(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly
|
||||
|
||||
class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
|
||||
"""ArrayOfArrayOfNumberOnly unit test stubs"""
|
||||
@ -28,13 +25,15 @@ class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> ArrayOfArrayOfNumberOnly:
|
||||
"""Test ArrayOfArrayOfNumberOnly
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.array_of_array_of_number_only.ArrayOfArrayOfNumberOnly() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `ArrayOfArrayOfNumberOnly`
|
||||
"""
|
||||
model = ArrayOfArrayOfNumberOnly()
|
||||
if include_optional:
|
||||
return ArrayOfArrayOfNumberOnly(
|
||||
array_array_number = [
|
||||
[
|
||||
@ -42,9 +41,10 @@ class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
|
||||
]
|
||||
]
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return ArrayOfArrayOfNumberOnly(
|
||||
)
|
||||
"""
|
||||
|
||||
def testArrayOfArrayOfNumberOnly(self):
|
||||
"""Test ArrayOfArrayOfNumberOnly"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.array_of_number_only import ArrayOfNumberOnly # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.array_of_number_only import ArrayOfNumberOnly
|
||||
|
||||
class TestArrayOfNumberOnly(unittest.TestCase):
|
||||
"""ArrayOfNumberOnly unit test stubs"""
|
||||
@ -28,21 +25,24 @@ class TestArrayOfNumberOnly(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> ArrayOfNumberOnly:
|
||||
"""Test ArrayOfNumberOnly
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.array_of_number_only.ArrayOfNumberOnly() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `ArrayOfNumberOnly`
|
||||
"""
|
||||
model = ArrayOfNumberOnly()
|
||||
if include_optional:
|
||||
return ArrayOfNumberOnly(
|
||||
array_number = [
|
||||
1.337
|
||||
]
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return ArrayOfNumberOnly(
|
||||
)
|
||||
"""
|
||||
|
||||
def testArrayOfNumberOnly(self):
|
||||
"""Test ArrayOfNumberOnly"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.array_test import ArrayTest # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.array_test import ArrayTest
|
||||
|
||||
class TestArrayTest(unittest.TestCase):
|
||||
"""ArrayTest unit test stubs"""
|
||||
@ -28,17 +25,22 @@ class TestArrayTest(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> ArrayTest:
|
||||
"""Test ArrayTest
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.array_test.ArrayTest() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `ArrayTest`
|
||||
"""
|
||||
model = ArrayTest()
|
||||
if include_optional:
|
||||
return ArrayTest(
|
||||
array_of_string = [
|
||||
''
|
||||
],
|
||||
array_of_nullable_float = [
|
||||
1.337
|
||||
],
|
||||
array_array_of_integer = [
|
||||
[
|
||||
56
|
||||
@ -52,9 +54,10 @@ class TestArrayTest(unittest.TestCase):
|
||||
]
|
||||
]
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return ArrayTest(
|
||||
)
|
||||
"""
|
||||
|
||||
def testArrayTest(self):
|
||||
"""Test ArrayTest"""
|
||||
|
@ -27,7 +27,7 @@ class TestBaseDiscriminator(unittest.TestCase):
|
||||
|
||||
def make_instance(self, include_optional) -> BaseDiscriminator:
|
||||
"""Test BaseDiscriminator
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 `BaseDiscriminator`
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.basque_pig import BasquePig # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.basque_pig import BasquePig
|
||||
|
||||
class TestBasquePig(unittest.TestCase):
|
||||
"""BasquePig unit test stubs"""
|
||||
@ -28,22 +25,25 @@ class TestBasquePig(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> BasquePig:
|
||||
"""Test BasquePig
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.basque_pig.BasquePig() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `BasquePig`
|
||||
"""
|
||||
model = BasquePig()
|
||||
if include_optional:
|
||||
return BasquePig(
|
||||
class_name = '',
|
||||
color = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return BasquePig(
|
||||
class_name = '',
|
||||
color = '',
|
||||
)
|
||||
"""
|
||||
|
||||
def testBasquePig(self):
|
||||
"""Test BasquePig"""
|
||||
|
@ -13,7 +13,6 @@
|
||||
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
from petstore_api.models.bathing import Bathing
|
||||
|
||||
@ -28,7 +27,7 @@ class TestBathing(unittest.TestCase):
|
||||
|
||||
def make_instance(self, include_optional) -> Bathing:
|
||||
"""Test Bathing
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 `Bathing`
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.capitalization import Capitalization # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.capitalization import Capitalization
|
||||
|
||||
class TestCapitalization(unittest.TestCase):
|
||||
"""Capitalization unit test stubs"""
|
||||
@ -28,13 +25,15 @@ class TestCapitalization(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Capitalization:
|
||||
"""Test Capitalization
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.capitalization.Capitalization() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `Capitalization`
|
||||
"""
|
||||
model = Capitalization()
|
||||
if include_optional:
|
||||
return Capitalization(
|
||||
small_camel = '',
|
||||
capital_camel = '',
|
||||
@ -43,9 +42,10 @@ class TestCapitalization(unittest.TestCase):
|
||||
sca_eth_flow_points = '',
|
||||
att_name = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Capitalization(
|
||||
)
|
||||
"""
|
||||
|
||||
def testCapitalization(self):
|
||||
"""Test Capitalization"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.cat import Cat # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.cat import Cat
|
||||
|
||||
class TestCat(unittest.TestCase):
|
||||
"""Cat unit test stubs"""
|
||||
@ -28,19 +25,22 @@ class TestCat(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Cat:
|
||||
"""Test Cat
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.cat.Cat() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `Cat`
|
||||
"""
|
||||
model = Cat()
|
||||
if include_optional:
|
||||
return Cat(
|
||||
declawed = True
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Cat(
|
||||
)
|
||||
"""
|
||||
|
||||
def testCat(self):
|
||||
"""Test Cat"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.category import Category # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.category import Category
|
||||
|
||||
class TestCategory(unittest.TestCase):
|
||||
"""Category unit test stubs"""
|
||||
@ -28,21 +25,24 @@ class TestCategory(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Category:
|
||||
"""Test Category
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.category.Category() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `Category`
|
||||
"""
|
||||
model = Category()
|
||||
if include_optional:
|
||||
return Category(
|
||||
id = 56,
|
||||
name = 'default-name'
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Category(
|
||||
name = 'default-name',
|
||||
)
|
||||
"""
|
||||
|
||||
def testCategory(self):
|
||||
"""Test Category"""
|
||||
|
@ -27,7 +27,7 @@ class TestCircularAllOfRef(unittest.TestCase):
|
||||
|
||||
def make_instance(self, include_optional) -> CircularAllOfRef:
|
||||
"""Test CircularAllOfRef
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 `CircularAllOfRef`
|
||||
@ -35,16 +35,10 @@ class TestCircularAllOfRef(unittest.TestCase):
|
||||
model = CircularAllOfRef()
|
||||
if include_optional:
|
||||
return CircularAllOfRef(
|
||||
second_circular_all_of_ref = [
|
||||
petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef(
|
||||
circular_all_of_ref = [
|
||||
petstore_api.models.circular_all_of_ref.CircularAllOfRef(
|
||||
name = '',
|
||||
second_circular_all_of_ref = [
|
||||
petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef()
|
||||
], )
|
||||
], )
|
||||
],
|
||||
name = ''
|
||||
]
|
||||
)
|
||||
else:
|
||||
return CircularAllOfRef(
|
||||
|
@ -3,23 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.circular_reference_model import CircularReferenceModel # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.circular_reference_model import CircularReferenceModel
|
||||
|
||||
class TestCircularReferenceModel(unittest.TestCase):
|
||||
"""CircularReferenceModel unit test stubs"""
|
||||
@ -30,15 +25,15 @@ class TestCircularReferenceModel(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> CircularReferenceModel:
|
||||
"""Test CircularReferenceModel
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.circular_reference_model.CircularReferenceModel() # noqa: E501
|
||||
if include_optional :
|
||||
model = CircularReferenceModel()
|
||||
if include_optional:
|
||||
return CircularReferenceModel(
|
||||
size = 56,
|
||||
nested = petstore_api.models.first_ref.FirstRef(
|
||||
@ -50,7 +45,7 @@ class TestCircularReferenceModel(unittest.TestCase):
|
||||
nested = petstore_api.models.first_ref.FirstRef(
|
||||
category = '', ), ), ), )
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return CircularReferenceModel(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.class_model import ClassModel # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.class_model import ClassModel
|
||||
|
||||
class TestClassModel(unittest.TestCase):
|
||||
"""ClassModel unit test stubs"""
|
||||
@ -28,19 +25,22 @@ class TestClassModel(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> ClassModel:
|
||||
"""Test ClassModel
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.class_model.ClassModel() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `ClassModel`
|
||||
"""
|
||||
model = ClassModel()
|
||||
if include_optional:
|
||||
return ClassModel(
|
||||
_class = ''
|
||||
var_class = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return ClassModel(
|
||||
)
|
||||
"""
|
||||
|
||||
def testClassModel(self):
|
||||
"""Test ClassModel"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.client import Client # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.client import Client
|
||||
|
||||
class TestClient(unittest.TestCase):
|
||||
"""Client unit test stubs"""
|
||||
@ -28,19 +25,22 @@ class TestClient(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Client:
|
||||
"""Test Client
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.client.Client() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `Client`
|
||||
"""
|
||||
model = Client()
|
||||
if include_optional:
|
||||
return Client(
|
||||
client = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Client(
|
||||
)
|
||||
"""
|
||||
|
||||
def testClient(self):
|
||||
"""Test Client"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.color import Color # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.color import Color
|
||||
|
||||
class TestColor(unittest.TestCase):
|
||||
"""Color unit test stubs"""
|
||||
@ -28,18 +25,18 @@ class TestColor(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Color:
|
||||
"""Test Color
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.color.Color() # noqa: E501
|
||||
if include_optional :
|
||||
model = Color()
|
||||
if include_optional:
|
||||
return Color(
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Color(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.creature import Creature # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.creature import Creature
|
||||
|
||||
class TestCreature(unittest.TestCase):
|
||||
"""Creature unit test stubs"""
|
||||
@ -28,21 +25,21 @@ class TestCreature(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Creature:
|
||||
"""Test Creature
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.creature.Creature() # noqa: E501
|
||||
if include_optional :
|
||||
model = Creature()
|
||||
if include_optional:
|
||||
return Creature(
|
||||
info = petstore_api.models.creature_info.CreatureInfo(
|
||||
name = '', ),
|
||||
type = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Creature(
|
||||
info = petstore_api.models.creature_info.CreatureInfo(
|
||||
name = '', ),
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.creature_info import CreatureInfo # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.creature_info import CreatureInfo
|
||||
|
||||
class TestCreatureInfo(unittest.TestCase):
|
||||
"""CreatureInfo unit test stubs"""
|
||||
@ -28,19 +25,19 @@ class TestCreatureInfo(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> CreatureInfo:
|
||||
"""Test CreatureInfo
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.creature_info.CreatureInfo() # noqa: E501
|
||||
if include_optional :
|
||||
model = CreatureInfo()
|
||||
if include_optional:
|
||||
return CreatureInfo(
|
||||
name = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return CreatureInfo(
|
||||
name = '',
|
||||
)
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.danish_pig import DanishPig # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.danish_pig import DanishPig
|
||||
|
||||
class TestDanishPig(unittest.TestCase):
|
||||
"""DanishPig unit test stubs"""
|
||||
@ -28,22 +25,25 @@ class TestDanishPig(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> DanishPig:
|
||||
"""Test DanishPig
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.danish_pig.DanishPig() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `DanishPig`
|
||||
"""
|
||||
model = DanishPig()
|
||||
if include_optional:
|
||||
return DanishPig(
|
||||
class_name = '',
|
||||
size = 56
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return DanishPig(
|
||||
class_name = '',
|
||||
size = 56,
|
||||
)
|
||||
"""
|
||||
|
||||
def testDanishPig(self):
|
||||
"""Test DanishPig"""
|
||||
|
@ -3,32 +3,30 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.api.default_api import DefaultApi # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.api.default_api import DefaultApi
|
||||
|
||||
|
||||
class TestDefaultApi(unittest.TestCase):
|
||||
class TestDefaultApi(unittest.IsolatedAsyncioTestCase):
|
||||
"""DefaultApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = petstore_api.api.default_api.DefaultApi() # noqa: E501
|
||||
async def asyncSetUp(self) -> None:
|
||||
self.api = DefaultApi()
|
||||
|
||||
def tearDown(self):
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_foo_get(self):
|
||||
async def test_foo_get(self) -> None:
|
||||
"""Test case for foo_get
|
||||
|
||||
"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.deprecated_object import DeprecatedObject # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.deprecated_object import DeprecatedObject
|
||||
|
||||
class TestDeprecatedObject(unittest.TestCase):
|
||||
"""DeprecatedObject unit test stubs"""
|
||||
@ -28,19 +25,22 @@ class TestDeprecatedObject(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> DeprecatedObject:
|
||||
"""Test DeprecatedObject
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.deprecated_object.DeprecatedObject() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `DeprecatedObject`
|
||||
"""
|
||||
model = DeprecatedObject()
|
||||
if include_optional:
|
||||
return DeprecatedObject(
|
||||
name = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return DeprecatedObject(
|
||||
)
|
||||
"""
|
||||
|
||||
def testDeprecatedObject(self):
|
||||
"""Test DeprecatedObject"""
|
||||
|
@ -27,7 +27,7 @@ class TestDiscriminatorAllOfSub(unittest.TestCase):
|
||||
|
||||
def make_instance(self, include_optional) -> DiscriminatorAllOfSub:
|
||||
"""Test DiscriminatorAllOfSub
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 `DiscriminatorAllOfSub`
|
||||
|
@ -27,7 +27,7 @@ class TestDiscriminatorAllOfSuper(unittest.TestCase):
|
||||
|
||||
def make_instance(self, include_optional) -> DiscriminatorAllOfSuper:
|
||||
"""Test DiscriminatorAllOfSuper
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 `DiscriminatorAllOfSuper`
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.dog import Dog # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.dog import Dog
|
||||
|
||||
class TestDog(unittest.TestCase):
|
||||
"""Dog unit test stubs"""
|
||||
@ -28,19 +25,22 @@ class TestDog(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Dog:
|
||||
"""Test Dog
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.dog.Dog() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `Dog`
|
||||
"""
|
||||
model = Dog()
|
||||
if include_optional:
|
||||
return Dog(
|
||||
breed = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Dog(
|
||||
)
|
||||
"""
|
||||
|
||||
def testDog(self):
|
||||
"""Test Dog"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.dummy_model import DummyModel # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.dummy_model import DummyModel
|
||||
|
||||
class TestDummyModel(unittest.TestCase):
|
||||
"""DummyModel unit test stubs"""
|
||||
@ -28,15 +25,15 @@ class TestDummyModel(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> DummyModel:
|
||||
"""Test DummyModel
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.dummy_model.DummyModel() # noqa: E501
|
||||
if include_optional :
|
||||
model = DummyModel()
|
||||
if include_optional:
|
||||
return DummyModel(
|
||||
category = '',
|
||||
self_ref = petstore_api.models.self_reference_model.Self-Reference-Model(
|
||||
@ -44,7 +41,7 @@ class TestDummyModel(unittest.TestCase):
|
||||
nested = petstore_api.models.dummy_model.Dummy-Model(
|
||||
category = '', ), )
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return DummyModel(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.enum_arrays import EnumArrays # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.enum_arrays import EnumArrays
|
||||
|
||||
class TestEnumArrays(unittest.TestCase):
|
||||
"""EnumArrays unit test stubs"""
|
||||
@ -28,22 +25,25 @@ class TestEnumArrays(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> EnumArrays:
|
||||
"""Test EnumArrays
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.enum_arrays.EnumArrays() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `EnumArrays`
|
||||
"""
|
||||
model = EnumArrays()
|
||||
if include_optional:
|
||||
return EnumArrays(
|
||||
just_symbol = '>=',
|
||||
array_enum = [
|
||||
'fish'
|
||||
]
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return EnumArrays(
|
||||
)
|
||||
"""
|
||||
|
||||
def testEnumArrays(self):
|
||||
"""Test EnumArrays"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.enum_class import EnumClass # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.enum_class import EnumClass
|
||||
|
||||
class TestEnumClass(unittest.TestCase):
|
||||
"""EnumClass unit test stubs"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.enum_string1 import EnumString1 # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.enum_string1 import EnumString1
|
||||
|
||||
class TestEnumString1(unittest.TestCase):
|
||||
"""EnumString1 unit test stubs"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.enum_string2 import EnumString2 # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.enum_string2 import EnumString2
|
||||
|
||||
class TestEnumString2(unittest.TestCase):
|
||||
"""EnumString2 unit test stubs"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.enum_test import EnumTest # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.enum_test import EnumTest
|
||||
|
||||
class TestEnumTest(unittest.TestCase):
|
||||
"""EnumTest unit test stubs"""
|
||||
@ -28,23 +25,33 @@ class TestEnumTest(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> EnumTest:
|
||||
"""Test EnumTest
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.enum_test.EnumTest() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `EnumTest`
|
||||
"""
|
||||
model = EnumTest()
|
||||
if include_optional:
|
||||
return EnumTest(
|
||||
enum_string = 'UPPER',
|
||||
enum_string_required = 'UPPER',
|
||||
enum_integer_default = 1,
|
||||
enum_integer = 1,
|
||||
enum_number = 1.1
|
||||
enum_number = 1.1,
|
||||
enum_number_vendor_ext = 42,
|
||||
enum_string_vendor_ext = 'FOO',
|
||||
outer_enum = 'placed',
|
||||
outer_enum_integer = 2,
|
||||
outer_enum_default_value = 'placed',
|
||||
outer_enum_integer_default_value = -1
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return EnumTest(
|
||||
enum_string_required = 'UPPER',
|
||||
)
|
||||
"""
|
||||
|
||||
def testEnumTest(self):
|
||||
"""Test EnumTest"""
|
||||
|
@ -3,134 +3,270 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.api.fake_api import FakeApi # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.api.fake_api import FakeApi
|
||||
|
||||
|
||||
class TestFakeApi(unittest.TestCase):
|
||||
class TestFakeApi(unittest.IsolatedAsyncioTestCase):
|
||||
"""FakeApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = petstore_api.api.fake_api.FakeApi() # noqa: E501
|
||||
async def asyncSetUp(self) -> None:
|
||||
self.api = FakeApi()
|
||||
|
||||
def tearDown(self):
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_fake_health_get(self):
|
||||
async def test_fake_any_type_request_body(self) -> None:
|
||||
"""Test case for fake_any_type_request_body
|
||||
|
||||
test any type request body
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_fake_enum_ref_query_parameter(self) -> None:
|
||||
"""Test case for fake_enum_ref_query_parameter
|
||||
|
||||
test enum reference query parameter
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_fake_health_get(self) -> None:
|
||||
"""Test case for fake_health_get
|
||||
|
||||
Health check endpoint # noqa: E501
|
||||
Health check endpoint
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_fake_http_signature_test(self):
|
||||
async def test_fake_http_signature_test(self) -> None:
|
||||
"""Test case for fake_http_signature_test
|
||||
|
||||
test http signature authentication # noqa: E501
|
||||
test http signature authentication
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_fake_outer_boolean_serialize(self):
|
||||
async def test_fake_outer_boolean_serialize(self) -> None:
|
||||
"""Test case for fake_outer_boolean_serialize
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_fake_outer_composite_serialize(self):
|
||||
async def test_fake_outer_composite_serialize(self) -> None:
|
||||
"""Test case for fake_outer_composite_serialize
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_fake_outer_number_serialize(self):
|
||||
async def test_fake_outer_number_serialize(self) -> None:
|
||||
"""Test case for fake_outer_number_serialize
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_fake_outer_string_serialize(self):
|
||||
async def test_fake_outer_string_serialize(self) -> None:
|
||||
"""Test case for fake_outer_string_serialize
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_fake_property_enum_integer_serialize(self):
|
||||
async def test_fake_property_enum_integer_serialize(self) -> None:
|
||||
"""Test case for fake_property_enum_integer_serialize
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_body_with_binary(self):
|
||||
async def test_fake_ref_enum_string(self) -> None:
|
||||
"""Test case for fake_ref_enum_string
|
||||
|
||||
test ref to enum string
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_fake_return_boolean(self) -> None:
|
||||
"""Test case for fake_return_boolean
|
||||
|
||||
test returning boolean
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_fake_return_byte_like_json(self) -> None:
|
||||
"""Test case for fake_return_byte_like_json
|
||||
|
||||
test byte like json
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_fake_return_enum(self) -> None:
|
||||
"""Test case for fake_return_enum
|
||||
|
||||
test returning enum
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_fake_return_enum_like_json(self) -> None:
|
||||
"""Test case for fake_return_enum_like_json
|
||||
|
||||
test enum like json
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_fake_return_float(self) -> None:
|
||||
"""Test case for fake_return_float
|
||||
|
||||
test returning float
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_fake_return_int(self) -> None:
|
||||
"""Test case for fake_return_int
|
||||
|
||||
test returning int
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_fake_return_list_of_objects(self) -> None:
|
||||
"""Test case for fake_return_list_of_objects
|
||||
|
||||
test returning list of objects
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_fake_return_str_like_json(self) -> None:
|
||||
"""Test case for fake_return_str_like_json
|
||||
|
||||
test str like json
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_fake_return_string(self) -> None:
|
||||
"""Test case for fake_return_string
|
||||
|
||||
test returning string
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_fake_uuid_example(self) -> None:
|
||||
"""Test case for fake_uuid_example
|
||||
|
||||
test uuid example
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_test_additional_properties_reference(self) -> None:
|
||||
"""Test case for test_additional_properties_reference
|
||||
|
||||
test referenced additionalProperties
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_test_body_with_binary(self) -> None:
|
||||
"""Test case for test_body_with_binary
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_body_with_file_schema(self):
|
||||
async 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):
|
||||
async def test_test_body_with_query_params(self) -> None:
|
||||
"""Test case for test_body_with_query_params
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_client_model(self):
|
||||
async def test_test_client_model(self) -> None:
|
||||
"""Test case for test_client_model
|
||||
|
||||
To test \"client\" model # noqa: E501
|
||||
To test \"client\" model
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_endpoint_parameters(self):
|
||||
async def test_test_date_time_query_parameter(self) -> None:
|
||||
"""Test case for test_date_time_query_parameter
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_test_empty_and_non_empty_responses(self) -> None:
|
||||
"""Test case for test_empty_and_non_empty_responses
|
||||
|
||||
test empty and non-empty responses
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_test_endpoint_parameters(self) -> None:
|
||||
"""Test case for test_endpoint_parameters
|
||||
|
||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # noqa: E501
|
||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_group_parameters(self):
|
||||
async def test_test_error_responses_with_model(self) -> None:
|
||||
"""Test case for test_error_responses_with_model
|
||||
|
||||
test error responses with model
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_test_group_parameters(self) -> None:
|
||||
"""Test case for test_group_parameters
|
||||
|
||||
Fake endpoint to test group parameters (optional) # noqa: E501
|
||||
Fake endpoint to test group parameters (optional)
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_inline_additional_properties(self):
|
||||
async def test_test_inline_additional_properties(self) -> None:
|
||||
"""Test case for test_inline_additional_properties
|
||||
|
||||
test inline additionalProperties # noqa: E501
|
||||
test inline additionalProperties
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_json_form_data(self):
|
||||
async def test_test_inline_freeform_additional_properties(self) -> None:
|
||||
"""Test case for test_inline_freeform_additional_properties
|
||||
|
||||
test inline free-form additionalProperties
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_test_json_form_data(self) -> None:
|
||||
"""Test case for test_json_form_data
|
||||
|
||||
test json serialization of form data # noqa: E501
|
||||
test json serialization of form data
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_parameter_collection_format(self):
|
||||
async def test_test_object_for_multipart_requests(self) -> None:
|
||||
"""Test case for test_object_for_multipart_requests
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_test_query_parameter_collection_format(self) -> None:
|
||||
"""Test case for test_query_parameter_collection_format
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
async def test_test_string_map_reference(self) -> None:
|
||||
"""Test case for test_string_map_reference
|
||||
|
||||
test referenced string map
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
@ -3,35 +3,33 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.api.fake_classname_tags123_api import FakeClassnameTags123Api # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.api.fake_classname_tags123_api import FakeClassnameTags123Api
|
||||
|
||||
|
||||
class TestFakeClassnameTags123Api(unittest.TestCase):
|
||||
class TestFakeClassnameTags123Api(unittest.IsolatedAsyncioTestCase):
|
||||
"""FakeClassnameTags123Api unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = petstore_api.api.fake_classname_tags123_api.FakeClassnameTags123Api() # noqa: E501
|
||||
async def asyncSetUp(self) -> None:
|
||||
self.api = FakeClassnameTags123Api()
|
||||
|
||||
def tearDown(self):
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_test_classname(self):
|
||||
async def test_test_classname(self) -> None:
|
||||
"""Test case for test_classname
|
||||
|
||||
To test class name in snake case # noqa: E501
|
||||
To test class name in snake case
|
||||
"""
|
||||
pass
|
||||
|
||||
|
@ -13,7 +13,6 @@
|
||||
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
from petstore_api.models.feeding import Feeding
|
||||
|
||||
@ -28,7 +27,7 @@ class TestFeeding(unittest.TestCase):
|
||||
|
||||
def make_instance(self, include_optional) -> Feeding:
|
||||
"""Test Feeding
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 `Feeding`
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.file import File # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.file import File
|
||||
|
||||
class TestFile(unittest.TestCase):
|
||||
"""File unit test stubs"""
|
||||
@ -28,19 +25,22 @@ class TestFile(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> File:
|
||||
"""Test File
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.file.File() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `File`
|
||||
"""
|
||||
model = File()
|
||||
if include_optional:
|
||||
return File(
|
||||
source_uri = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return File(
|
||||
)
|
||||
"""
|
||||
|
||||
def testFile(self):
|
||||
"""Test File"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.file_schema_test_class import FileSchemaTestClass # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.file_schema_test_class import FileSchemaTestClass
|
||||
|
||||
class TestFileSchemaTestClass(unittest.TestCase):
|
||||
"""FileSchemaTestClass unit test stubs"""
|
||||
@ -28,13 +25,15 @@ class TestFileSchemaTestClass(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> FileSchemaTestClass:
|
||||
"""Test FileSchemaTestClass
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.file_schema_test_class.FileSchemaTestClass() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `FileSchemaTestClass`
|
||||
"""
|
||||
model = FileSchemaTestClass()
|
||||
if include_optional:
|
||||
return FileSchemaTestClass(
|
||||
file = petstore_api.models.file.File(
|
||||
source_uri = '', ),
|
||||
@ -43,9 +42,10 @@ class TestFileSchemaTestClass(unittest.TestCase):
|
||||
source_uri = '', )
|
||||
]
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return FileSchemaTestClass(
|
||||
)
|
||||
"""
|
||||
|
||||
def testFileSchemaTestClass(self):
|
||||
"""Test FileSchemaTestClass"""
|
||||
|
@ -3,23 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.first_ref import FirstRef # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.first_ref import FirstRef
|
||||
|
||||
class TestFirstRef(unittest.TestCase):
|
||||
"""FirstRef unit test stubs"""
|
||||
@ -30,15 +25,15 @@ class TestFirstRef(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> FirstRef:
|
||||
"""Test FirstRef
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.first_ref.FirstRef() # noqa: E501
|
||||
if include_optional :
|
||||
model = FirstRef()
|
||||
if include_optional:
|
||||
return FirstRef(
|
||||
category = '',
|
||||
self_ref = petstore_api.models.second_ref.SecondRef(
|
||||
@ -48,7 +43,7 @@ class TestFirstRef(unittest.TestCase):
|
||||
nested = petstore_api.models.first_ref.FirstRef(
|
||||
category = '', ), ), )
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return FirstRef(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.foo import Foo # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.foo import Foo
|
||||
|
||||
class TestFoo(unittest.TestCase):
|
||||
"""Foo unit test stubs"""
|
||||
@ -28,19 +25,22 @@ class TestFoo(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Foo:
|
||||
"""Test Foo
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.foo.Foo() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `Foo`
|
||||
"""
|
||||
model = Foo()
|
||||
if include_optional:
|
||||
return Foo(
|
||||
bar = 'bar'
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Foo(
|
||||
)
|
||||
"""
|
||||
|
||||
def testFoo(self):
|
||||
"""Test Foo"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.foo_get_default_response import FooGetDefaultResponse # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.foo_get_default_response import FooGetDefaultResponse
|
||||
|
||||
class TestFooGetDefaultResponse(unittest.TestCase):
|
||||
"""FooGetDefaultResponse unit test stubs"""
|
||||
@ -28,20 +25,23 @@ class TestFooGetDefaultResponse(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> FooGetDefaultResponse:
|
||||
"""Test FooGetDefaultResponse
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.foo_get_default_response.FooGetDefaultResponse() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `FooGetDefaultResponse`
|
||||
"""
|
||||
model = FooGetDefaultResponse()
|
||||
if include_optional:
|
||||
return FooGetDefaultResponse(
|
||||
string = petstore_api.models.foo.Foo(
|
||||
bar = 'bar', )
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return FooGetDefaultResponse(
|
||||
)
|
||||
"""
|
||||
|
||||
def testFooGetDefaultResponse(self):
|
||||
"""Test FooGetDefaultResponse"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.format_test import FormatTest # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.format_test import FormatTest
|
||||
|
||||
class TestFormatTest(unittest.TestCase):
|
||||
"""FormatTest unit test stubs"""
|
||||
@ -28,37 +25,41 @@ class TestFormatTest(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> FormatTest:
|
||||
"""Test FormatTest
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.format_test.FormatTest() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `FormatTest`
|
||||
"""
|
||||
model = FormatTest()
|
||||
if include_optional:
|
||||
return FormatTest(
|
||||
integer = 10,
|
||||
int32 = 20,
|
||||
int64 = 56,
|
||||
number = 32.1,
|
||||
float = 54.3,
|
||||
var_float = 54.3,
|
||||
double = 67.8,
|
||||
decimal = 1,
|
||||
string = 'a',
|
||||
string_with_double_quote_pattern = 'this is \"something\"',
|
||||
byte = 'YQ==',
|
||||
binary = bytes(b'blah'),
|
||||
_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
|
||||
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 :
|
||||
else:
|
||||
return FormatTest(
|
||||
number = 32.1,
|
||||
byte = 'YQ==',
|
||||
_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
|
||||
var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
|
||||
password = '0123456789',
|
||||
)
|
||||
"""
|
||||
|
||||
def testFormatTest(self):
|
||||
"""Test FormatTest"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.has_only_read_only import HasOnlyReadOnly # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.has_only_read_only import HasOnlyReadOnly
|
||||
|
||||
class TestHasOnlyReadOnly(unittest.TestCase):
|
||||
"""HasOnlyReadOnly unit test stubs"""
|
||||
@ -28,20 +25,23 @@ class TestHasOnlyReadOnly(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> HasOnlyReadOnly:
|
||||
"""Test HasOnlyReadOnly
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.has_only_read_only.HasOnlyReadOnly() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `HasOnlyReadOnly`
|
||||
"""
|
||||
model = HasOnlyReadOnly()
|
||||
if include_optional:
|
||||
return HasOnlyReadOnly(
|
||||
bar = '',
|
||||
foo = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return HasOnlyReadOnly(
|
||||
)
|
||||
"""
|
||||
|
||||
def testHasOnlyReadOnly(self):
|
||||
"""Test HasOnlyReadOnly"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.health_check_result import HealthCheckResult # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.health_check_result import HealthCheckResult
|
||||
|
||||
class TestHealthCheckResult(unittest.TestCase):
|
||||
"""HealthCheckResult unit test stubs"""
|
||||
@ -28,19 +25,22 @@ class TestHealthCheckResult(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> HealthCheckResult:
|
||||
"""Test HealthCheckResult
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.health_check_result.HealthCheckResult() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `HealthCheckResult`
|
||||
"""
|
||||
model = HealthCheckResult()
|
||||
if include_optional:
|
||||
return HealthCheckResult(
|
||||
nullable_message = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return HealthCheckResult(
|
||||
)
|
||||
"""
|
||||
|
||||
def testHealthCheckResult(self):
|
||||
"""Test HealthCheckResult"""
|
||||
|
@ -17,16 +17,16 @@ import unittest
|
||||
from petstore_api.api.import_test_datetime_api import ImportTestDatetimeApi
|
||||
|
||||
|
||||
class TestImportTestDatetimeApi(unittest.TestCase):
|
||||
class TestImportTestDatetimeApi(unittest.IsolatedAsyncioTestCase):
|
||||
"""ImportTestDatetimeApi unit test stubs"""
|
||||
|
||||
def setUp(self) -> None:
|
||||
async def asyncSetUp(self) -> None:
|
||||
self.api = ImportTestDatetimeApi()
|
||||
|
||||
def tearDown(self) -> None:
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_import_test_return_datetime(self) -> None:
|
||||
async def test_import_test_return_datetime(self) -> None:
|
||||
"""Test case for import_test_return_datetime
|
||||
|
||||
test date time
|
||||
|
@ -27,7 +27,7 @@ class TestInfo(unittest.TestCase):
|
||||
|
||||
def make_instance(self, include_optional) -> Info:
|
||||
"""Test Info
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 `Info`
|
||||
|
@ -3,23 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.inner_dict_with_property import InnerDictWithProperty # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.inner_dict_with_property import InnerDictWithProperty
|
||||
|
||||
class TestInnerDictWithProperty(unittest.TestCase):
|
||||
"""InnerDictWithProperty unit test stubs"""
|
||||
@ -30,19 +25,19 @@ class TestInnerDictWithProperty(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> InnerDictWithProperty:
|
||||
"""Test InnerDictWithProperty
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.inner_dict_with_property.InnerDictWithProperty() # noqa: E501
|
||||
if include_optional :
|
||||
model = InnerDictWithProperty()
|
||||
if include_optional:
|
||||
return InnerDictWithProperty(
|
||||
a_property = None
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return InnerDictWithProperty(
|
||||
)
|
||||
"""
|
||||
|
@ -27,7 +27,7 @@ class TestInputAllOf(unittest.TestCase):
|
||||
|
||||
def make_instance(self, include_optional) -> InputAllOf:
|
||||
"""Test InputAllOf
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 `InputAllOf`
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.int_or_string import IntOrString # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.int_or_string import IntOrString
|
||||
|
||||
class TestIntOrString(unittest.TestCase):
|
||||
"""IntOrString unit test stubs"""
|
||||
@ -28,18 +25,18 @@ class TestIntOrString(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> IntOrString:
|
||||
"""Test IntOrString
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.int_or_string.IntOrString() # noqa: E501
|
||||
if include_optional :
|
||||
model = IntOrString()
|
||||
if include_optional:
|
||||
return IntOrString(
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return IntOrString(
|
||||
)
|
||||
"""
|
||||
|
@ -13,9 +13,8 @@
|
||||
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
from petstore_api.models.list_class import ListClass # noqa: E501
|
||||
from petstore_api.models.list_class import ListClass
|
||||
|
||||
class TestListClass(unittest.TestCase):
|
||||
"""ListClass unit test stubs"""
|
||||
@ -28,12 +27,12 @@ class TestListClass(unittest.TestCase):
|
||||
|
||||
def make_instance(self, include_optional) -> ListClass:
|
||||
"""Test ListClass
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 `ListClass`
|
||||
"""
|
||||
model = ListClass() # noqa: E501
|
||||
model = ListClass()
|
||||
if include_optional:
|
||||
return ListClass(
|
||||
var_123_list = ''
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.map_of_array_of_model import MapOfArrayOfModel # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.map_of_array_of_model import MapOfArrayOfModel
|
||||
|
||||
class TestMapOfArrayOfModel(unittest.TestCase):
|
||||
"""MapOfArrayOfModel unit test stubs"""
|
||||
@ -28,15 +25,15 @@ class TestMapOfArrayOfModel(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> MapOfArrayOfModel:
|
||||
"""Test MapOfArrayOfModel
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.map_of_array_of_model.MapOfArrayOfModel() # noqa: E501
|
||||
if include_optional :
|
||||
model = MapOfArrayOfModel()
|
||||
if include_optional:
|
||||
return MapOfArrayOfModel(
|
||||
shop_id_to_org_online_lip_map = {
|
||||
'key' : [
|
||||
@ -46,7 +43,7 @@ class TestMapOfArrayOfModel(unittest.TestCase):
|
||||
]
|
||||
}
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return MapOfArrayOfModel(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.map_test import MapTest # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.map_test import MapTest
|
||||
|
||||
class TestMapTest(unittest.TestCase):
|
||||
"""MapTest unit test stubs"""
|
||||
@ -28,13 +25,15 @@ class TestMapTest(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> MapTest:
|
||||
"""Test MapTest
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.map_test.MapTest() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `MapTest`
|
||||
"""
|
||||
model = MapTest()
|
||||
if include_optional:
|
||||
return MapTest(
|
||||
map_map_of_string = {
|
||||
'key' : {
|
||||
@ -51,9 +50,10 @@ class TestMapTest(unittest.TestCase):
|
||||
'key' : True
|
||||
}
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return MapTest(
|
||||
)
|
||||
"""
|
||||
|
||||
def testMapTest(self):
|
||||
"""Test MapTest"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass
|
||||
|
||||
class TestMixedPropertiesAndAdditionalPropertiesClass(unittest.TestCase):
|
||||
"""MixedPropertiesAndAdditionalPropertiesClass unit test stubs"""
|
||||
@ -28,13 +25,15 @@ class TestMixedPropertiesAndAdditionalPropertiesClass(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> MixedPropertiesAndAdditionalPropertiesClass:
|
||||
"""Test MixedPropertiesAndAdditionalPropertiesClass
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.mixed_properties_and_additional_properties_class.MixedPropertiesAndAdditionalPropertiesClass() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `MixedPropertiesAndAdditionalPropertiesClass`
|
||||
"""
|
||||
model = MixedPropertiesAndAdditionalPropertiesClass()
|
||||
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'),
|
||||
@ -44,9 +43,10 @@ class TestMixedPropertiesAndAdditionalPropertiesClass(unittest.TestCase):
|
||||
color = 'red', )
|
||||
}
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return MixedPropertiesAndAdditionalPropertiesClass(
|
||||
)
|
||||
"""
|
||||
|
||||
def testMixedPropertiesAndAdditionalPropertiesClass(self):
|
||||
"""Test MixedPropertiesAndAdditionalPropertiesClass"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.model200_response import Model200Response # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.model200_response import Model200Response
|
||||
|
||||
class TestModel200Response(unittest.TestCase):
|
||||
"""Model200Response unit test stubs"""
|
||||
@ -28,20 +25,23 @@ class TestModel200Response(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Model200Response:
|
||||
"""Test Model200Response
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.model200_response.Model200Response() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `Model200Response`
|
||||
"""
|
||||
model = Model200Response()
|
||||
if include_optional:
|
||||
return Model200Response(
|
||||
name = 56,
|
||||
_class = ''
|
||||
var_class = ''
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Model200Response(
|
||||
)
|
||||
"""
|
||||
|
||||
def testModel200Response(self):
|
||||
"""Test Model200Response"""
|
||||
|
@ -13,7 +13,6 @@
|
||||
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
from petstore_api.models.model_api_response import ModelApiResponse
|
||||
|
||||
@ -28,7 +27,7 @@ class TestModelApiResponse(unittest.TestCase):
|
||||
|
||||
def make_instance(self, include_optional) -> ModelApiResponse:
|
||||
"""Test ModelApiResponse
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 `ModelApiResponse`
|
||||
|
@ -27,7 +27,7 @@ class TestModelField(unittest.TestCase):
|
||||
|
||||
def make_instance(self, include_optional) -> ModelField:
|
||||
"""Test ModelField
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 `ModelField`
|
||||
@ -35,7 +35,7 @@ class TestModelField(unittest.TestCase):
|
||||
model = ModelField()
|
||||
if include_optional:
|
||||
return ModelField(
|
||||
dummy = ''
|
||||
var_field = ''
|
||||
)
|
||||
else:
|
||||
return ModelField(
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.model_return import ModelReturn # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.model_return import ModelReturn
|
||||
|
||||
class TestModelReturn(unittest.TestCase):
|
||||
"""ModelReturn unit test stubs"""
|
||||
@ -28,19 +25,22 @@ class TestModelReturn(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> ModelReturn:
|
||||
"""Test ModelReturn
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.model_return.ModelReturn() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `ModelReturn`
|
||||
"""
|
||||
model = ModelReturn()
|
||||
if include_optional:
|
||||
return ModelReturn(
|
||||
_return = 56
|
||||
var_return = 56
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return ModelReturn(
|
||||
)
|
||||
"""
|
||||
|
||||
def testModelReturn(self):
|
||||
"""Test ModelReturn"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.name import Name # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.name import Name
|
||||
|
||||
class TestName(unittest.TestCase):
|
||||
"""Name unit test stubs"""
|
||||
@ -28,23 +25,26 @@ class TestName(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Name:
|
||||
"""Test Name
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.name.Name() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `Name`
|
||||
"""
|
||||
model = Name()
|
||||
if include_optional:
|
||||
return Name(
|
||||
name = 56,
|
||||
snake_case = 56,
|
||||
_property = '',
|
||||
_123_number = 56
|
||||
var_property = '',
|
||||
var_123_number = 56
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Name(
|
||||
name = 56,
|
||||
)
|
||||
"""
|
||||
|
||||
def testName(self):
|
||||
"""Test Name"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.nullable_class import NullableClass # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.nullable_class import NullableClass
|
||||
|
||||
class TestNullableClass(unittest.TestCase):
|
||||
"""NullableClass unit test stubs"""
|
||||
@ -28,13 +25,15 @@ class TestNullableClass(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> NullableClass:
|
||||
"""Test NullableClass
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.nullable_class.NullableClass() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `NullableClass`
|
||||
"""
|
||||
model = NullableClass()
|
||||
if include_optional:
|
||||
return NullableClass(
|
||||
required_integer_prop = 56,
|
||||
integer_prop = 56,
|
||||
@ -62,10 +61,11 @@ class TestNullableClass(unittest.TestCase):
|
||||
'key' : None
|
||||
}
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return NullableClass(
|
||||
required_integer_prop = 56,
|
||||
)
|
||||
"""
|
||||
|
||||
def testNullableClass(self):
|
||||
"""Test NullableClass"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.nullable_property import NullableProperty # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.nullable_property import NullableProperty
|
||||
|
||||
class TestNullableProperty(unittest.TestCase):
|
||||
"""NullableProperty unit test stubs"""
|
||||
@ -28,20 +25,20 @@ class TestNullableProperty(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> NullableProperty:
|
||||
"""Test NullableProperty
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.nullable_property.NullableProperty() # noqa: E501
|
||||
if include_optional :
|
||||
model = NullableProperty()
|
||||
if include_optional:
|
||||
return NullableProperty(
|
||||
id = 56,
|
||||
name = 'AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>'
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return NullableProperty(
|
||||
id = 56,
|
||||
name = 'AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>',
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.number_only import NumberOnly # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.number_only import NumberOnly
|
||||
|
||||
class TestNumberOnly(unittest.TestCase):
|
||||
"""NumberOnly unit test stubs"""
|
||||
@ -28,19 +25,22 @@ class TestNumberOnly(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> NumberOnly:
|
||||
"""Test NumberOnly
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.number_only.NumberOnly() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `NumberOnly`
|
||||
"""
|
||||
model = NumberOnly()
|
||||
if include_optional:
|
||||
return NumberOnly(
|
||||
just_number = 1.337
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return NumberOnly(
|
||||
)
|
||||
"""
|
||||
|
||||
def testNumberOnly(self):
|
||||
"""Test NumberOnly"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.object_to_test_additional_properties import ObjectToTestAdditionalProperties # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.object_to_test_additional_properties import ObjectToTestAdditionalProperties
|
||||
|
||||
class TestObjectToTestAdditionalProperties(unittest.TestCase):
|
||||
"""ObjectToTestAdditionalProperties unit test stubs"""
|
||||
@ -28,19 +25,19 @@ class TestObjectToTestAdditionalProperties(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> ObjectToTestAdditionalProperties:
|
||||
"""Test ObjectToTestAdditionalProperties
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.object_to_test_additional_properties.ObjectToTestAdditionalProperties() # noqa: E501
|
||||
if include_optional :
|
||||
model = ObjectToTestAdditionalProperties()
|
||||
if include_optional:
|
||||
return ObjectToTestAdditionalProperties(
|
||||
var_property = True
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return ObjectToTestAdditionalProperties(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.object_with_deprecated_fields import ObjectWithDeprecatedFields # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.object_with_deprecated_fields import ObjectWithDeprecatedFields
|
||||
|
||||
class TestObjectWithDeprecatedFields(unittest.TestCase):
|
||||
"""ObjectWithDeprecatedFields unit test stubs"""
|
||||
@ -28,13 +25,15 @@ class TestObjectWithDeprecatedFields(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> ObjectWithDeprecatedFields:
|
||||
"""Test ObjectWithDeprecatedFields
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.object_with_deprecated_fields.ObjectWithDeprecatedFields() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `ObjectWithDeprecatedFields`
|
||||
"""
|
||||
model = ObjectWithDeprecatedFields()
|
||||
if include_optional:
|
||||
return ObjectWithDeprecatedFields(
|
||||
uuid = '',
|
||||
id = 1.337,
|
||||
@ -44,9 +43,10 @@ class TestObjectWithDeprecatedFields(unittest.TestCase):
|
||||
'bar'
|
||||
]
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return ObjectWithDeprecatedFields(
|
||||
)
|
||||
"""
|
||||
|
||||
def testObjectWithDeprecatedFields(self):
|
||||
"""Test ObjectWithDeprecatedFields"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.one_of_enum_string import OneOfEnumString # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.one_of_enum_string import OneOfEnumString
|
||||
|
||||
class TestOneOfEnumString(unittest.TestCase):
|
||||
"""OneOfEnumString unit test stubs"""
|
||||
@ -28,18 +25,18 @@ class TestOneOfEnumString(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> OneOfEnumString:
|
||||
"""Test OneOfEnumString
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.one_of_enum_string.OneOfEnumString() # noqa: E501
|
||||
if include_optional :
|
||||
model = OneOfEnumString()
|
||||
if include_optional:
|
||||
return OneOfEnumString(
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return OneOfEnumString(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.order import Order # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.order import Order
|
||||
|
||||
class TestOrder(unittest.TestCase):
|
||||
"""Order unit test stubs"""
|
||||
@ -28,13 +25,15 @@ class TestOrder(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Order:
|
||||
"""Test Order
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.order.Order() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `Order`
|
||||
"""
|
||||
model = Order()
|
||||
if include_optional:
|
||||
return Order(
|
||||
id = 56,
|
||||
pet_id = 56,
|
||||
@ -43,9 +42,10 @@ class TestOrder(unittest.TestCase):
|
||||
status = 'placed',
|
||||
complete = True
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Order(
|
||||
)
|
||||
"""
|
||||
|
||||
def testOrder(self):
|
||||
"""Test Order"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.outer_composite import OuterComposite # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.outer_composite import OuterComposite
|
||||
|
||||
class TestOuterComposite(unittest.TestCase):
|
||||
"""OuterComposite unit test stubs"""
|
||||
@ -28,21 +25,24 @@ class TestOuterComposite(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> OuterComposite:
|
||||
"""Test OuterComposite
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.outer_composite.OuterComposite() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `OuterComposite`
|
||||
"""
|
||||
model = OuterComposite()
|
||||
if include_optional:
|
||||
return OuterComposite(
|
||||
my_number = 1.337,
|
||||
my_string = '',
|
||||
my_boolean = True
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return OuterComposite(
|
||||
)
|
||||
"""
|
||||
|
||||
def testOuterComposite(self):
|
||||
"""Test OuterComposite"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.outer_enum import OuterEnum # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.outer_enum import OuterEnum
|
||||
|
||||
class TestOuterEnum(unittest.TestCase):
|
||||
"""OuterEnum unit test stubs"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.outer_enum_default_value import OuterEnumDefaultValue # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.outer_enum_default_value import OuterEnumDefaultValue
|
||||
|
||||
class TestOuterEnumDefaultValue(unittest.TestCase):
|
||||
"""OuterEnumDefaultValue unit test stubs"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.outer_enum_integer import OuterEnumInteger # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.outer_enum_integer import OuterEnumInteger
|
||||
|
||||
class TestOuterEnumInteger(unittest.TestCase):
|
||||
"""OuterEnumInteger unit test stubs"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue
|
||||
|
||||
class TestOuterEnumIntegerDefaultValue(unittest.TestCase):
|
||||
"""OuterEnumIntegerDefaultValue unit test stubs"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.outer_object_with_enum_property import OuterObjectWithEnumProperty # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.outer_object_with_enum_property import OuterObjectWithEnumProperty
|
||||
|
||||
class TestOuterObjectWithEnumProperty(unittest.TestCase):
|
||||
"""OuterObjectWithEnumProperty unit test stubs"""
|
||||
@ -28,20 +25,24 @@ class TestOuterObjectWithEnumProperty(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> OuterObjectWithEnumProperty:
|
||||
"""Test OuterObjectWithEnumProperty
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.outer_object_with_enum_property.OuterObjectWithEnumProperty() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `OuterObjectWithEnumProperty`
|
||||
"""
|
||||
model = OuterObjectWithEnumProperty()
|
||||
if include_optional:
|
||||
return OuterObjectWithEnumProperty(
|
||||
str_value = 'placed',
|
||||
value = 2
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return OuterObjectWithEnumProperty(
|
||||
value = 2,
|
||||
)
|
||||
"""
|
||||
|
||||
def testOuterObjectWithEnumProperty(self):
|
||||
"""Test OuterObjectWithEnumProperty"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.parent import Parent # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.parent import Parent
|
||||
|
||||
class TestParent(unittest.TestCase):
|
||||
"""Parent unit test stubs"""
|
||||
@ -28,22 +25,22 @@ class TestParent(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Parent:
|
||||
"""Test Parent
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.parent.Parent() # noqa: E501
|
||||
if include_optional :
|
||||
model = Parent()
|
||||
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 :
|
||||
else:
|
||||
return Parent(
|
||||
)
|
||||
"""
|
||||
|
@ -3,23 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.parent_with_optional_dict import ParentWithOptionalDict # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.parent_with_optional_dict import ParentWithOptionalDict
|
||||
|
||||
class TestParentWithOptionalDict(unittest.TestCase):
|
||||
"""ParentWithOptionalDict unit test stubs"""
|
||||
@ -30,22 +25,22 @@ class TestParentWithOptionalDict(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> ParentWithOptionalDict:
|
||||
"""Test ParentWithOptionalDict
|
||||
include_option is a boolean, when False only required
|
||||
include_optional 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 = petstore_api.models.parent_with_optional_dict.ParentWithOptionalDict() # noqa: E501
|
||||
if include_optional :
|
||||
model = ParentWithOptionalDict()
|
||||
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 :
|
||||
else:
|
||||
return ParentWithOptionalDict(
|
||||
)
|
||||
"""
|
||||
|
@ -3,21 +3,18 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.pet import Pet # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.pet import Pet
|
||||
|
||||
class TestPet(unittest.TestCase):
|
||||
"""Pet unit test stubs"""
|
||||
@ -28,13 +25,15 @@ class TestPet(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional):
|
||||
def make_instance(self, include_optional) -> Pet:
|
||||
"""Test Pet
|
||||
include_option is a boolean, when False only required
|
||||
include_optional is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# model = petstore_api.models.pet.Pet() # noqa: E501
|
||||
if include_optional :
|
||||
# uncomment below to create an instance of `Pet`
|
||||
"""
|
||||
model = Pet()
|
||||
if include_optional:
|
||||
return Pet(
|
||||
id = 56,
|
||||
category = petstore_api.models.category.Category(
|
||||
@ -51,13 +50,14 @@ class TestPet(unittest.TestCase):
|
||||
],
|
||||
status = 'available'
|
||||
)
|
||||
else :
|
||||
else:
|
||||
return Pet(
|
||||
name = 'doggie',
|
||||
photo_urls = [
|
||||
''
|
||||
],
|
||||
)
|
||||
"""
|
||||
|
||||
def testPet(self):
|
||||
"""Test Pet"""
|
||||
|
@ -3,91 +3,89 @@
|
||||
"""
|
||||
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: \" \\ # noqa: E501
|
||||
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: https://openapi-generator.tech
|
||||
"""
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.api.pet_api import PetApi # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.api.pet_api import PetApi
|
||||
|
||||
|
||||
class TestPetApi(unittest.TestCase):
|
||||
class TestPetApi(unittest.IsolatedAsyncioTestCase):
|
||||
"""PetApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = petstore_api.api.pet_api.PetApi() # noqa: E501
|
||||
async def asyncSetUp(self) -> None:
|
||||
self.api = PetApi()
|
||||
|
||||
def tearDown(self):
|
||||
async def asyncTearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_add_pet(self):
|
||||
async def test_add_pet(self) -> None:
|
||||
"""Test case for add_pet
|
||||
|
||||
Add a new pet to the store # noqa: E501
|
||||
Add a new pet to the store
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_delete_pet(self):
|
||||
async def test_delete_pet(self) -> None:
|
||||
"""Test case for delete_pet
|
||||
|
||||
Deletes a pet # noqa: E501
|
||||
Deletes a pet
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_find_pets_by_status(self):
|
||||
async def test_find_pets_by_status(self) -> None:
|
||||
"""Test case for find_pets_by_status
|
||||
|
||||
Finds Pets by status # noqa: E501
|
||||
Finds Pets by status
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_find_pets_by_tags(self):
|
||||
async def test_find_pets_by_tags(self) -> None:
|
||||
"""Test case for find_pets_by_tags
|
||||
|
||||
Finds Pets by tags # noqa: E501
|
||||
Finds Pets by tags
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_pet_by_id(self):
|
||||
async def test_get_pet_by_id(self) -> None:
|
||||
"""Test case for get_pet_by_id
|
||||
|
||||
Find pet by ID # noqa: E501
|
||||
Find pet by ID
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_pet(self):
|
||||
async def test_update_pet(self) -> None:
|
||||
"""Test case for update_pet
|
||||
|
||||
Update an existing pet # noqa: E501
|
||||
Update an existing pet
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_update_pet_with_form(self):
|
||||
async 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
|
||||
Updates a pet in the store with form data
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_upload_file(self):
|
||||
async def test_upload_file(self) -> None:
|
||||
"""Test case for upload_file
|
||||
|
||||
uploads an image # noqa: E501
|
||||
uploads an image
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_upload_file_with_required_file(self):
|
||||
async def test_upload_file_with_required_file(self) -> None:
|
||||
"""Test case for upload_file_with_required_file
|
||||
|
||||
uploads an image (required) # noqa: E501
|
||||
uploads an image (required)
|
||||
"""
|
||||
pass
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user