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:
Jonathan Ballet 2024-09-18 10:53:51 +02:00 committed by GitHub
parent b3e72feaa9
commit 40967a3d38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
228 changed files with 2355 additions and 2283 deletions

View File

@ -17,7 +17,7 @@ jobs:
# schema # schema
- samples/schema/postman-collection - samples/schema/postman-collection
python-version: python-version:
- "3.11" - "3.12"
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5

View File

@ -19,6 +19,7 @@ jobs:
- "3.9" - "3.9"
- "3.10" - "3.10"
- "3.11" - "3.11"
- "3.12"
sample: sample:
- samples/openapi3/client/petstore/python-aiohttp - samples/openapi3/client/petstore/python-aiohttp
- samples/openapi3/client/petstore/python - samples/openapi3/client/petstore/python

View File

@ -17,11 +17,11 @@ jobs:
# clients # clients
- samples/client/echo_api/python-pydantic-v1/ - samples/client/echo_api/python-pydantic-v1/
python-version: python-version:
- "3.7"
- "3.8" - "3.8"
- "3.9" - "3.9"
- "3.10" - "3.10"
- "3.11" - "3.11"
- "3.12"
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5

View File

@ -19,6 +19,7 @@ jobs:
- "3.9" - "3.9"
- "3.10" - "3.10"
- "3.11" - "3.11"
- "3.12"
sample: sample:
- samples/openapi3/client/petstore/python-pydantic-v1-aiohttp - samples/openapi3/client/petstore/python-pydantic-v1-aiohttp
- samples/openapi3/client/petstore/python-pydantic-v1 - samples/openapi3/client/petstore/python-pydantic-v1

View File

@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: '3.7' python-version: '3.9'
- name: Test - name: Test
working-directory: ${{ matrix.sample }} working-directory: ${{ matrix.sample }}
run: make test-all run: make test-all

View File

@ -7,17 +7,31 @@ import unittest
from {{apiPackage}}.{{classFilename}} import {{classname}} # noqa: E501 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""" """{{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: def setUp(self) -> None:
self.api = {{classname}}() # noqa: E501 self.api = {{classname}}()
def tearDown(self) -> None: def tearDown(self) -> None:
pass pass
{{/asyncio}}
{{#operation}} {{#operation}}
{{#asyncio}}
async def test_{{operationId}}(self) -> None:
{{/asyncio}}
{{^asyncio}}
def test_{{operationId}}(self) -> None: def test_{{operationId}}(self) -> None:
{{/asyncio}}
"""Test case for {{{operationId}}} """Test case for {{{operationId}}}
{{#summary}} {{#summary}}

View File

@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: 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: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View File

@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"]
include = ["{{packageName}}/py.typed"] include = ["{{packageName}}/py.typed"]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.7" python = "^3.8"
urllib3 = ">= 1.25.3" urllib3 = ">= 1.25.3"
python-dateutil = ">=2.8.2" python-dateutil = ">=2.8.2"

View File

@ -7,17 +7,31 @@ import unittest
from {{apiPackage}}.{{classFilename}} import {{classname}} from {{apiPackage}}.{{classFilename}} import {{classname}}
class {{#operations}}Test{{classname}}(unittest.TestCase): class {{#operations}}Test{{classname}}(unittest.{{#asyncio}}IsolatedAsyncio{{/asyncio}}TestCase):
"""{{classname}} unit test stubs""" """{{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: def setUp(self) -> None:
self.api = {{classname}}() self.api = {{classname}}()
def tearDown(self) -> None: def tearDown(self) -> None:
pass pass
{{/asyncio}}
{{#operation}} {{#operation}}
{{#asyncio}}
async def test_{{operationId}}(self) -> None:
{{/asyncio}}
{{^asyncio}}
def test_{{operationId}}(self) -> None: def test_{{operationId}}(self) -> None:
{{/asyncio}}
"""Test case for {{{operationId}}} """Test case for {{{operationId}}}
{{#summary}} {{#summary}}

View File

@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: 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: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View File

@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"]
include = ["{{packageName}}/py.typed"] include = ["{{packageName}}/py.typed"]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.7" python = "^3.8"
urllib3 = ">= 1.25.3" urllib3 = ">= 1.25.3"
python-dateutil = ">=2.8.2" python-dateutil = ">=2.8.2"
@ -33,7 +33,7 @@ pytest = ">=7.2.1"
tox = ">=3.9.0" tox = ">=3.9.0"
flake8 = ">=4.0.0" flake8 = ">=4.0.0"
types-python-dateutil = ">=2.8.19.14" types-python-dateutil = ">=2.8.19.14"
mypy = "1.4.1" mypy = ">=1.5"
[build-system] [build-system]

View File

@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: 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: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View File

@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "Echo Server API"]
include = ["openapi_client/py.typed"] include = ["openapi_client/py.typed"]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.7" python = "^3.8"
urllib3 = ">= 1.25.3" urllib3 = ">= 1.25.3"
python-dateutil = ">=2.8.2" python-dateutil = ">=2.8.2"
@ -22,7 +22,7 @@ pytest = ">=7.2.1"
tox = ">=3.9.0" tox = ">=3.9.0"
flake8 = ">=4.0.0" flake8 = ">=4.0.0"
types-python-dateutil = ">=2.8.19.14" types-python-dateutil = ">=2.8.19.14"
mypy = "1.4.1" mypy = ">=1.5"
[build-system] [build-system]

View File

@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: 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: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View File

@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "Echo Server API"]
include = ["openapi_client/py.typed"] include = ["openapi_client/py.typed"]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.7" python = "^3.8"
urllib3 = ">= 1.25.3" urllib3 = ">= 1.25.3"
python-dateutil = ">=2.8.2" python-dateutil = ">=2.8.2"

View File

@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: 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: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View File

@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "Echo Server API"]
include = ["openapi_client/py.typed"] include = ["openapi_client/py.typed"]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.7" python = "^3.8"
urllib3 = ">= 1.25.3" urllib3 = ">= 1.25.3"
python-dateutil = ">=2.8.2" python-dateutil = ">=2.8.2"
@ -22,7 +22,7 @@ pytest = ">=7.2.1"
tox = ">=3.9.0" tox = ">=3.9.0"
flake8 = ">=4.0.0" flake8 = ">=4.0.0"
types-python-dateutil = ">=2.8.19.14" types-python-dateutil = ">=2.8.19.14"
mypy = "1.4.1" mypy = ">=1.5"
[build-system] [build-system]

View File

@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: 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: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View File

@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"]
include = ["petstore_api/py.typed"] include = ["petstore_api/py.typed"]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.7" python = "^3.8"
urllib3 = ">= 1.25.3" urllib3 = ">= 1.25.3"
python-dateutil = ">=2.8.2" python-dateutil = ">=2.8.2"
@ -26,7 +26,7 @@ pytest = ">=7.2.1"
tox = ">=3.9.0" tox = ">=3.9.0"
flake8 = ">=4.0.0" flake8 = ">=4.0.0"
types-python-dateutil = ">=2.8.19.14" types-python-dateutil = ">=2.8.19.14"
mypy = "1.4.1" mypy = ">=1.5"
[build-system] [build-system]

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.additional_properties_any_type import AdditionalPropertiesAnyType
from petstore_api.models.additional_properties_any_type import AdditionalPropertiesAnyType # noqa: E501
from petstore_api.rest import ApiException
class TestAdditionalPropertiesAnyType(unittest.TestCase): class TestAdditionalPropertiesAnyType(unittest.TestCase):
"""AdditionalPropertiesAnyType unit test stubs""" """AdditionalPropertiesAnyType unit test stubs"""
@ -28,19 +25,19 @@ class TestAdditionalPropertiesAnyType(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> AdditionalPropertiesAnyType:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `AdditionalPropertiesAnyType` # uncomment below to create an instance of `AdditionalPropertiesAnyType`
""" """
model = petstore_api.models.additional_properties_any_type.AdditionalPropertiesAnyType() # noqa: E501 model = AdditionalPropertiesAnyType()
if include_optional : if include_optional:
return AdditionalPropertiesAnyType( return AdditionalPropertiesAnyType(
name = '' name = ''
) )
else : else:
return AdditionalPropertiesAnyType( return AdditionalPropertiesAnyType(
) )
""" """

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.additional_properties_class import AdditionalPropertiesClass
from petstore_api.models.additional_properties_class import AdditionalPropertiesClass # noqa: E501
from petstore_api.rest import ApiException
class TestAdditionalPropertiesClass(unittest.TestCase): class TestAdditionalPropertiesClass(unittest.TestCase):
"""AdditionalPropertiesClass unit test stubs""" """AdditionalPropertiesClass unit test stubs"""
@ -28,15 +25,15 @@ class TestAdditionalPropertiesClass(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> AdditionalPropertiesClass:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `AdditionalPropertiesClass` # uncomment below to create an instance of `AdditionalPropertiesClass`
""" """
model = petstore_api.models.additional_properties_class.AdditionalPropertiesClass() # noqa: E501 model = AdditionalPropertiesClass()
if include_optional : if include_optional:
return AdditionalPropertiesClass( return AdditionalPropertiesClass(
map_property = { map_property = {
'key' : '' 'key' : ''
@ -47,7 +44,7 @@ class TestAdditionalPropertiesClass(unittest.TestCase):
} }
} }
) )
else : else:
return AdditionalPropertiesClass( return AdditionalPropertiesClass(
) )
""" """

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.additional_properties_object import AdditionalPropertiesObject
from petstore_api.models.additional_properties_object import AdditionalPropertiesObject # noqa: E501
from petstore_api.rest import ApiException
class TestAdditionalPropertiesObject(unittest.TestCase): class TestAdditionalPropertiesObject(unittest.TestCase):
"""AdditionalPropertiesObject unit test stubs""" """AdditionalPropertiesObject unit test stubs"""
@ -28,19 +25,19 @@ class TestAdditionalPropertiesObject(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> AdditionalPropertiesObject:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `AdditionalPropertiesObject` # uncomment below to create an instance of `AdditionalPropertiesObject`
""" """
model = petstore_api.models.additional_properties_object.AdditionalPropertiesObject() # noqa: E501 model = AdditionalPropertiesObject()
if include_optional : if include_optional:
return AdditionalPropertiesObject( return AdditionalPropertiesObject(
name = '' name = ''
) )
else : else:
return AdditionalPropertiesObject( return AdditionalPropertiesObject(
) )
""" """

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.additional_properties_with_description_only import AdditionalPropertiesWithDescriptionOnly
from petstore_api.models.additional_properties_with_description_only import AdditionalPropertiesWithDescriptionOnly # noqa: E501
from petstore_api.rest import ApiException
class TestAdditionalPropertiesWithDescriptionOnly(unittest.TestCase): class TestAdditionalPropertiesWithDescriptionOnly(unittest.TestCase):
"""AdditionalPropertiesWithDescriptionOnly unit test stubs""" """AdditionalPropertiesWithDescriptionOnly unit test stubs"""
@ -28,19 +25,19 @@ class TestAdditionalPropertiesWithDescriptionOnly(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> AdditionalPropertiesWithDescriptionOnly:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `AdditionalPropertiesWithDescriptionOnly` # uncomment below to create an instance of `AdditionalPropertiesWithDescriptionOnly`
""" """
model = petstore_api.models.additional_properties_with_description_only.AdditionalPropertiesWithDescriptionOnly() # noqa: E501 model = AdditionalPropertiesWithDescriptionOnly()
if include_optional : if include_optional:
return AdditionalPropertiesWithDescriptionOnly( return AdditionalPropertiesWithDescriptionOnly(
name = '' name = ''
) )
else : else:
return AdditionalPropertiesWithDescriptionOnly( return AdditionalPropertiesWithDescriptionOnly(
) )
""" """

View File

@ -27,7 +27,7 @@ class TestAllOfSuperModel(unittest.TestCase):
def make_instance(self, include_optional) -> AllOfSuperModel: def make_instance(self, include_optional) -> AllOfSuperModel:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `AllOfSuperModel` # uncomment below to create an instance of `AllOfSuperModel`

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.all_of_with_single_ref import AllOfWithSingleRef
from petstore_api.models.all_of_with_single_ref import AllOfWithSingleRef # noqa: E501
from petstore_api.rest import ApiException
class TestAllOfWithSingleRef(unittest.TestCase): class TestAllOfWithSingleRef(unittest.TestCase):
"""AllOfWithSingleRef unit test stubs""" """AllOfWithSingleRef unit test stubs"""
@ -28,20 +25,23 @@ class TestAllOfWithSingleRef(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> AllOfWithSingleRef:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.all_of_with_single_ref.AllOfWithSingleRef() # noqa: E501 # uncomment below to create an instance of `AllOfWithSingleRef`
if include_optional : """
model = AllOfWithSingleRef()
if include_optional:
return AllOfWithSingleRef( return AllOfWithSingleRef(
username = '', username = '',
single_ref_type = None single_ref_type = 'admin'
) )
else : else:
return AllOfWithSingleRef( return AllOfWithSingleRef(
) )
"""
def testAllOfWithSingleRef(self): def testAllOfWithSingleRef(self):
"""Test AllOfWithSingleRef""" """Test AllOfWithSingleRef"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.animal import Animal
from petstore_api.models.animal import Animal # noqa: E501
from petstore_api.rest import ApiException
class TestAnimal(unittest.TestCase): class TestAnimal(unittest.TestCase):
"""Animal unit test stubs""" """Animal unit test stubs"""
@ -28,21 +25,24 @@ class TestAnimal(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> Animal:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.animal.Animal() # noqa: E501 # uncomment below to create an instance of `Animal`
if include_optional : """
model = Animal()
if include_optional:
return Animal( return Animal(
class_name = '', class_name = '',
color = 'red' color = 'red'
) )
else : else:
return Animal( return Animal(
class_name = '', class_name = '',
) )
"""
def testAnimal(self): def testAnimal(self):
"""Test Animal""" """Test Animal"""

View File

@ -3,35 +3,33 @@
""" """
OpenAPI Petstore 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 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 unittest
import petstore_api from petstore_api.api.another_fake_api import AnotherFakeApi
from petstore_api.api.another_fake_api import AnotherFakeApi # noqa: E501
from petstore_api.rest import ApiException
class TestAnotherFakeApi(unittest.TestCase): class TestAnotherFakeApi(unittest.IsolatedAsyncioTestCase):
"""AnotherFakeApi unit test stubs""" """AnotherFakeApi unit test stubs"""
def setUp(self): async def asyncSetUp(self) -> None:
self.api = petstore_api.api.another_fake_api.AnotherFakeApi() # noqa: E501 self.api = AnotherFakeApi()
def tearDown(self): async def asyncTearDown(self) -> None:
pass 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 """Test case for call_123_test_special_tags
To test special tags # noqa: E501 To test special tags
""" """
pass pass

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.any_of_color import AnyOfColor
from petstore_api.models.any_of_color import AnyOfColor # noqa: E501
from petstore_api.rest import ApiException
class TestAnyOfColor(unittest.TestCase): class TestAnyOfColor(unittest.TestCase):
"""AnyOfColor unit test stubs""" """AnyOfColor unit test stubs"""
@ -28,18 +25,18 @@ class TestAnyOfColor(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> AnyOfColor:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `AnyOfColor` # uncomment below to create an instance of `AnyOfColor`
""" """
model = petstore_api.models.any_of_color.AnyOfColor() # noqa: E501 model = AnyOfColor()
if include_optional : if include_optional:
return AnyOfColor( return AnyOfColor(
) )
else : else:
return AnyOfColor( return AnyOfColor(
) )
""" """

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.any_of_pig import AnyOfPig
from petstore_api.models.any_of_pig import AnyOfPig # noqa: E501
from petstore_api.rest import ApiException
class TestAnyOfPig(unittest.TestCase): class TestAnyOfPig(unittest.TestCase):
"""AnyOfPig unit test stubs""" """AnyOfPig unit test stubs"""
@ -28,24 +25,27 @@ class TestAnyOfPig(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> AnyOfPig:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.any_of_pig.AnyOfPig() # noqa: E501 # uncomment below to create an instance of `AnyOfPig`
if include_optional : """
model = AnyOfPig()
if include_optional:
return AnyOfPig( return AnyOfPig(
class_name = '', class_name = '',
color = '', color = '',
size = 56 size = 56
) )
else : else:
return AnyOfPig( return AnyOfPig(
class_name = '', class_name = '',
color = '', color = '',
size = 56, size = 56,
) )
"""
def testAnyOfPig(self): def testAnyOfPig(self):
"""Test AnyOfPig""" """Test AnyOfPig"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.array_of_array_of_model import ArrayOfArrayOfModel
from petstore_api.models.array_of_array_of_model import ArrayOfArrayOfModel # noqa: E501
from petstore_api.rest import ApiException
class TestArrayOfArrayOfModel(unittest.TestCase): class TestArrayOfArrayOfModel(unittest.TestCase):
"""ArrayOfArrayOfModel unit test stubs""" """ArrayOfArrayOfModel unit test stubs"""
@ -28,15 +25,15 @@ class TestArrayOfArrayOfModel(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> ArrayOfArrayOfModel:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `ArrayOfArrayOfModel` # uncomment below to create an instance of `ArrayOfArrayOfModel`
""" """
model = petstore_api.models.array_of_array_of_model.ArrayOfArrayOfModel() # noqa: E501 model = ArrayOfArrayOfModel()
if include_optional : if include_optional:
return ArrayOfArrayOfModel( return ArrayOfArrayOfModel(
another_property = [ another_property = [
[ [
@ -46,7 +43,7 @@ class TestArrayOfArrayOfModel(unittest.TestCase):
] ]
] ]
) )
else : else:
return ArrayOfArrayOfModel( return ArrayOfArrayOfModel(
) )
""" """

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly
from petstore_api.models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly # noqa: E501
from petstore_api.rest import ApiException
class TestArrayOfArrayOfNumberOnly(unittest.TestCase): class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
"""ArrayOfArrayOfNumberOnly unit test stubs""" """ArrayOfArrayOfNumberOnly unit test stubs"""
@ -28,13 +25,15 @@ class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> ArrayOfArrayOfNumberOnly:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.array_of_array_of_number_only.ArrayOfArrayOfNumberOnly() # noqa: E501 # uncomment below to create an instance of `ArrayOfArrayOfNumberOnly`
if include_optional : """
model = ArrayOfArrayOfNumberOnly()
if include_optional:
return ArrayOfArrayOfNumberOnly( return ArrayOfArrayOfNumberOnly(
array_array_number = [ array_array_number = [
[ [
@ -42,9 +41,10 @@ class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
] ]
] ]
) )
else : else:
return ArrayOfArrayOfNumberOnly( return ArrayOfArrayOfNumberOnly(
) )
"""
def testArrayOfArrayOfNumberOnly(self): def testArrayOfArrayOfNumberOnly(self):
"""Test ArrayOfArrayOfNumberOnly""" """Test ArrayOfArrayOfNumberOnly"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.array_of_number_only import ArrayOfNumberOnly
from petstore_api.models.array_of_number_only import ArrayOfNumberOnly # noqa: E501
from petstore_api.rest import ApiException
class TestArrayOfNumberOnly(unittest.TestCase): class TestArrayOfNumberOnly(unittest.TestCase):
"""ArrayOfNumberOnly unit test stubs""" """ArrayOfNumberOnly unit test stubs"""
@ -28,21 +25,24 @@ class TestArrayOfNumberOnly(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> ArrayOfNumberOnly:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.array_of_number_only.ArrayOfNumberOnly() # noqa: E501 # uncomment below to create an instance of `ArrayOfNumberOnly`
if include_optional : """
model = ArrayOfNumberOnly()
if include_optional:
return ArrayOfNumberOnly( return ArrayOfNumberOnly(
array_number = [ array_number = [
1.337 1.337
] ]
) )
else : else:
return ArrayOfNumberOnly( return ArrayOfNumberOnly(
) )
"""
def testArrayOfNumberOnly(self): def testArrayOfNumberOnly(self):
"""Test ArrayOfNumberOnly""" """Test ArrayOfNumberOnly"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.array_test import ArrayTest
from petstore_api.models.array_test import ArrayTest # noqa: E501
from petstore_api.rest import ApiException
class TestArrayTest(unittest.TestCase): class TestArrayTest(unittest.TestCase):
"""ArrayTest unit test stubs""" """ArrayTest unit test stubs"""
@ -28,17 +25,22 @@ class TestArrayTest(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> ArrayTest:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.array_test.ArrayTest() # noqa: E501 # uncomment below to create an instance of `ArrayTest`
if include_optional : """
model = ArrayTest()
if include_optional:
return ArrayTest( return ArrayTest(
array_of_string = [ array_of_string = [
'' ''
], ],
array_of_nullable_float = [
1.337
],
array_array_of_integer = [ array_array_of_integer = [
[ [
56 56
@ -52,9 +54,10 @@ class TestArrayTest(unittest.TestCase):
] ]
] ]
) )
else : else:
return ArrayTest( return ArrayTest(
) )
"""
def testArrayTest(self): def testArrayTest(self):
"""Test ArrayTest""" """Test ArrayTest"""

View File

@ -27,7 +27,7 @@ class TestBaseDiscriminator(unittest.TestCase):
def make_instance(self, include_optional) -> BaseDiscriminator: def make_instance(self, include_optional) -> BaseDiscriminator:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `BaseDiscriminator` # uncomment below to create an instance of `BaseDiscriminator`

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.basque_pig import BasquePig
from petstore_api.models.basque_pig import BasquePig # noqa: E501
from petstore_api.rest import ApiException
class TestBasquePig(unittest.TestCase): class TestBasquePig(unittest.TestCase):
"""BasquePig unit test stubs""" """BasquePig unit test stubs"""
@ -28,22 +25,25 @@ class TestBasquePig(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> BasquePig:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.basque_pig.BasquePig() # noqa: E501 # uncomment below to create an instance of `BasquePig`
if include_optional : """
model = BasquePig()
if include_optional:
return BasquePig( return BasquePig(
class_name = '', class_name = '',
color = '' color = ''
) )
else : else:
return BasquePig( return BasquePig(
class_name = '', class_name = '',
color = '', color = '',
) )
"""
def testBasquePig(self): def testBasquePig(self):
"""Test BasquePig""" """Test BasquePig"""

View File

@ -13,7 +13,6 @@
import unittest import unittest
import datetime
from petstore_api.models.bathing import Bathing from petstore_api.models.bathing import Bathing
@ -28,7 +27,7 @@ class TestBathing(unittest.TestCase):
def make_instance(self, include_optional) -> Bathing: def make_instance(self, include_optional) -> Bathing:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `Bathing` # uncomment below to create an instance of `Bathing`

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.capitalization import Capitalization
from petstore_api.models.capitalization import Capitalization # noqa: E501
from petstore_api.rest import ApiException
class TestCapitalization(unittest.TestCase): class TestCapitalization(unittest.TestCase):
"""Capitalization unit test stubs""" """Capitalization unit test stubs"""
@ -28,13 +25,15 @@ class TestCapitalization(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> Capitalization:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.capitalization.Capitalization() # noqa: E501 # uncomment below to create an instance of `Capitalization`
if include_optional : """
model = Capitalization()
if include_optional:
return Capitalization( return Capitalization(
small_camel = '', small_camel = '',
capital_camel = '', capital_camel = '',
@ -43,9 +42,10 @@ class TestCapitalization(unittest.TestCase):
sca_eth_flow_points = '', sca_eth_flow_points = '',
att_name = '' att_name = ''
) )
else : else:
return Capitalization( return Capitalization(
) )
"""
def testCapitalization(self): def testCapitalization(self):
"""Test Capitalization""" """Test Capitalization"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.cat import Cat
from petstore_api.models.cat import Cat # noqa: E501
from petstore_api.rest import ApiException
class TestCat(unittest.TestCase): class TestCat(unittest.TestCase):
"""Cat unit test stubs""" """Cat unit test stubs"""
@ -28,19 +25,22 @@ class TestCat(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> Cat:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.cat.Cat() # noqa: E501 # uncomment below to create an instance of `Cat`
if include_optional : """
model = Cat()
if include_optional:
return Cat( return Cat(
declawed = True declawed = True
) )
else : else:
return Cat( return Cat(
) )
"""
def testCat(self): def testCat(self):
"""Test Cat""" """Test Cat"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.category import Category
from petstore_api.models.category import Category # noqa: E501
from petstore_api.rest import ApiException
class TestCategory(unittest.TestCase): class TestCategory(unittest.TestCase):
"""Category unit test stubs""" """Category unit test stubs"""
@ -28,21 +25,24 @@ class TestCategory(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> Category:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.category.Category() # noqa: E501 # uncomment below to create an instance of `Category`
if include_optional : """
model = Category()
if include_optional:
return Category( return Category(
id = 56, id = 56,
name = 'default-name' name = 'default-name'
) )
else : else:
return Category( return Category(
name = 'default-name', name = 'default-name',
) )
"""
def testCategory(self): def testCategory(self):
"""Test Category""" """Test Category"""

View File

@ -27,7 +27,7 @@ class TestCircularAllOfRef(unittest.TestCase):
def make_instance(self, include_optional) -> CircularAllOfRef: def make_instance(self, include_optional) -> CircularAllOfRef:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `CircularAllOfRef` # uncomment below to create an instance of `CircularAllOfRef`
@ -35,16 +35,10 @@ class TestCircularAllOfRef(unittest.TestCase):
model = CircularAllOfRef() model = CircularAllOfRef()
if include_optional: if include_optional:
return CircularAllOfRef( return CircularAllOfRef(
second_circular_all_of_ref = [ name = '',
petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef(
circular_all_of_ref = [
petstore_api.models.circular_all_of_ref.CircularAllOfRef(
second_circular_all_of_ref = [ second_circular_all_of_ref = [
petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef() petstore_api.models.second_circular_all_of_ref.SecondCircularAllOfRef()
], ) ]
], )
],
name = ''
) )
else: else:
return CircularAllOfRef( return CircularAllOfRef(

View File

@ -3,23 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
from __future__ import absolute_import
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.circular_reference_model import CircularReferenceModel
from petstore_api.models.circular_reference_model import CircularReferenceModel # noqa: E501
from petstore_api.rest import ApiException
class TestCircularReferenceModel(unittest.TestCase): class TestCircularReferenceModel(unittest.TestCase):
"""CircularReferenceModel unit test stubs""" """CircularReferenceModel unit test stubs"""
@ -30,15 +25,15 @@ class TestCircularReferenceModel(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> CircularReferenceModel:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `CircularReferenceModel` # uncomment below to create an instance of `CircularReferenceModel`
""" """
model = petstore_api.models.circular_reference_model.CircularReferenceModel() # noqa: E501 model = CircularReferenceModel()
if include_optional : if include_optional:
return CircularReferenceModel( return CircularReferenceModel(
size = 56, size = 56,
nested = petstore_api.models.first_ref.FirstRef( nested = petstore_api.models.first_ref.FirstRef(
@ -50,7 +45,7 @@ class TestCircularReferenceModel(unittest.TestCase):
nested = petstore_api.models.first_ref.FirstRef( nested = petstore_api.models.first_ref.FirstRef(
category = '', ), ), ), ) category = '', ), ), ), )
) )
else : else:
return CircularReferenceModel( return CircularReferenceModel(
) )
""" """

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.class_model import ClassModel
from petstore_api.models.class_model import ClassModel # noqa: E501
from petstore_api.rest import ApiException
class TestClassModel(unittest.TestCase): class TestClassModel(unittest.TestCase):
"""ClassModel unit test stubs""" """ClassModel unit test stubs"""
@ -28,19 +25,22 @@ class TestClassModel(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> ClassModel:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.class_model.ClassModel() # noqa: E501 # uncomment below to create an instance of `ClassModel`
if include_optional : """
model = ClassModel()
if include_optional:
return ClassModel( return ClassModel(
_class = '' var_class = ''
) )
else : else:
return ClassModel( return ClassModel(
) )
"""
def testClassModel(self): def testClassModel(self):
"""Test ClassModel""" """Test ClassModel"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.client import Client
from petstore_api.models.client import Client # noqa: E501
from petstore_api.rest import ApiException
class TestClient(unittest.TestCase): class TestClient(unittest.TestCase):
"""Client unit test stubs""" """Client unit test stubs"""
@ -28,19 +25,22 @@ class TestClient(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> Client:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.client.Client() # noqa: E501 # uncomment below to create an instance of `Client`
if include_optional : """
model = Client()
if include_optional:
return Client( return Client(
client = '' client = ''
) )
else : else:
return Client( return Client(
) )
"""
def testClient(self): def testClient(self):
"""Test Client""" """Test Client"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.color import Color
from petstore_api.models.color import Color # noqa: E501
from petstore_api.rest import ApiException
class TestColor(unittest.TestCase): class TestColor(unittest.TestCase):
"""Color unit test stubs""" """Color unit test stubs"""
@ -28,18 +25,18 @@ class TestColor(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> Color:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `Color` # uncomment below to create an instance of `Color`
""" """
model = petstore_api.models.color.Color() # noqa: E501 model = Color()
if include_optional : if include_optional:
return Color( return Color(
) )
else : else:
return Color( return Color(
) )
""" """

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.creature import Creature
from petstore_api.models.creature import Creature # noqa: E501
from petstore_api.rest import ApiException
class TestCreature(unittest.TestCase): class TestCreature(unittest.TestCase):
"""Creature unit test stubs""" """Creature unit test stubs"""
@ -28,21 +25,21 @@ class TestCreature(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> Creature:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `Creature` # uncomment below to create an instance of `Creature`
""" """
model = petstore_api.models.creature.Creature() # noqa: E501 model = Creature()
if include_optional : if include_optional:
return Creature( return Creature(
info = petstore_api.models.creature_info.CreatureInfo( info = petstore_api.models.creature_info.CreatureInfo(
name = '', ), name = '', ),
type = '' type = ''
) )
else : else:
return Creature( return Creature(
info = petstore_api.models.creature_info.CreatureInfo( info = petstore_api.models.creature_info.CreatureInfo(
name = '', ), name = '', ),

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.creature_info import CreatureInfo
from petstore_api.models.creature_info import CreatureInfo # noqa: E501
from petstore_api.rest import ApiException
class TestCreatureInfo(unittest.TestCase): class TestCreatureInfo(unittest.TestCase):
"""CreatureInfo unit test stubs""" """CreatureInfo unit test stubs"""
@ -28,19 +25,19 @@ class TestCreatureInfo(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> CreatureInfo:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `CreatureInfo` # uncomment below to create an instance of `CreatureInfo`
""" """
model = petstore_api.models.creature_info.CreatureInfo() # noqa: E501 model = CreatureInfo()
if include_optional : if include_optional:
return CreatureInfo( return CreatureInfo(
name = '' name = ''
) )
else : else:
return CreatureInfo( return CreatureInfo(
name = '', name = '',
) )

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.danish_pig import DanishPig
from petstore_api.models.danish_pig import DanishPig # noqa: E501
from petstore_api.rest import ApiException
class TestDanishPig(unittest.TestCase): class TestDanishPig(unittest.TestCase):
"""DanishPig unit test stubs""" """DanishPig unit test stubs"""
@ -28,22 +25,25 @@ class TestDanishPig(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> DanishPig:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.danish_pig.DanishPig() # noqa: E501 # uncomment below to create an instance of `DanishPig`
if include_optional : """
model = DanishPig()
if include_optional:
return DanishPig( return DanishPig(
class_name = '', class_name = '',
size = 56 size = 56
) )
else : else:
return DanishPig( return DanishPig(
class_name = '', class_name = '',
size = 56, size = 56,
) )
"""
def testDanishPig(self): def testDanishPig(self):
"""Test DanishPig""" """Test DanishPig"""

View File

@ -3,32 +3,30 @@
""" """
OpenAPI Petstore 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 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 unittest
import petstore_api from petstore_api.api.default_api import DefaultApi
from petstore_api.api.default_api import DefaultApi # noqa: E501
from petstore_api.rest import ApiException
class TestDefaultApi(unittest.TestCase): class TestDefaultApi(unittest.IsolatedAsyncioTestCase):
"""DefaultApi unit test stubs""" """DefaultApi unit test stubs"""
def setUp(self): async def asyncSetUp(self) -> None:
self.api = petstore_api.api.default_api.DefaultApi() # noqa: E501 self.api = DefaultApi()
def tearDown(self): async def asyncTearDown(self) -> None:
pass pass
def test_foo_get(self): async def test_foo_get(self) -> None:
"""Test case for foo_get """Test case for foo_get
""" """

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.deprecated_object import DeprecatedObject
from petstore_api.models.deprecated_object import DeprecatedObject # noqa: E501
from petstore_api.rest import ApiException
class TestDeprecatedObject(unittest.TestCase): class TestDeprecatedObject(unittest.TestCase):
"""DeprecatedObject unit test stubs""" """DeprecatedObject unit test stubs"""
@ -28,19 +25,22 @@ class TestDeprecatedObject(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> DeprecatedObject:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.deprecated_object.DeprecatedObject() # noqa: E501 # uncomment below to create an instance of `DeprecatedObject`
if include_optional : """
model = DeprecatedObject()
if include_optional:
return DeprecatedObject( return DeprecatedObject(
name = '' name = ''
) )
else : else:
return DeprecatedObject( return DeprecatedObject(
) )
"""
def testDeprecatedObject(self): def testDeprecatedObject(self):
"""Test DeprecatedObject""" """Test DeprecatedObject"""

View File

@ -27,7 +27,7 @@ class TestDiscriminatorAllOfSub(unittest.TestCase):
def make_instance(self, include_optional) -> DiscriminatorAllOfSub: def make_instance(self, include_optional) -> DiscriminatorAllOfSub:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `DiscriminatorAllOfSub` # uncomment below to create an instance of `DiscriminatorAllOfSub`

View File

@ -27,7 +27,7 @@ class TestDiscriminatorAllOfSuper(unittest.TestCase):
def make_instance(self, include_optional) -> DiscriminatorAllOfSuper: def make_instance(self, include_optional) -> DiscriminatorAllOfSuper:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `DiscriminatorAllOfSuper` # uncomment below to create an instance of `DiscriminatorAllOfSuper`

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.dog import Dog
from petstore_api.models.dog import Dog # noqa: E501
from petstore_api.rest import ApiException
class TestDog(unittest.TestCase): class TestDog(unittest.TestCase):
"""Dog unit test stubs""" """Dog unit test stubs"""
@ -28,19 +25,22 @@ class TestDog(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> Dog:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.dog.Dog() # noqa: E501 # uncomment below to create an instance of `Dog`
if include_optional : """
model = Dog()
if include_optional:
return Dog( return Dog(
breed = '' breed = ''
) )
else : else:
return Dog( return Dog(
) )
"""
def testDog(self): def testDog(self):
"""Test Dog""" """Test Dog"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.dummy_model import DummyModel
from petstore_api.models.dummy_model import DummyModel # noqa: E501
from petstore_api.rest import ApiException
class TestDummyModel(unittest.TestCase): class TestDummyModel(unittest.TestCase):
"""DummyModel unit test stubs""" """DummyModel unit test stubs"""
@ -28,15 +25,15 @@ class TestDummyModel(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> DummyModel:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `DummyModel` # uncomment below to create an instance of `DummyModel`
""" """
model = petstore_api.models.dummy_model.DummyModel() # noqa: E501 model = DummyModel()
if include_optional : if include_optional:
return DummyModel( return DummyModel(
category = '', category = '',
self_ref = petstore_api.models.self_reference_model.Self-Reference-Model( 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( nested = petstore_api.models.dummy_model.Dummy-Model(
category = '', ), ) category = '', ), )
) )
else : else:
return DummyModel( return DummyModel(
) )
""" """

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.enum_arrays import EnumArrays
from petstore_api.models.enum_arrays import EnumArrays # noqa: E501
from petstore_api.rest import ApiException
class TestEnumArrays(unittest.TestCase): class TestEnumArrays(unittest.TestCase):
"""EnumArrays unit test stubs""" """EnumArrays unit test stubs"""
@ -28,22 +25,25 @@ class TestEnumArrays(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> EnumArrays:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.enum_arrays.EnumArrays() # noqa: E501 # uncomment below to create an instance of `EnumArrays`
if include_optional : """
model = EnumArrays()
if include_optional:
return EnumArrays( return EnumArrays(
just_symbol = '>=', just_symbol = '>=',
array_enum = [ array_enum = [
'fish' 'fish'
] ]
) )
else : else:
return EnumArrays( return EnumArrays(
) )
"""
def testEnumArrays(self): def testEnumArrays(self):
"""Test EnumArrays""" """Test EnumArrays"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.enum_class import EnumClass
from petstore_api.models.enum_class import EnumClass # noqa: E501
from petstore_api.rest import ApiException
class TestEnumClass(unittest.TestCase): class TestEnumClass(unittest.TestCase):
"""EnumClass unit test stubs""" """EnumClass unit test stubs"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.enum_string1 import EnumString1
from petstore_api.models.enum_string1 import EnumString1 # noqa: E501
from petstore_api.rest import ApiException
class TestEnumString1(unittest.TestCase): class TestEnumString1(unittest.TestCase):
"""EnumString1 unit test stubs""" """EnumString1 unit test stubs"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.enum_string2 import EnumString2
from petstore_api.models.enum_string2 import EnumString2 # noqa: E501
from petstore_api.rest import ApiException
class TestEnumString2(unittest.TestCase): class TestEnumString2(unittest.TestCase):
"""EnumString2 unit test stubs""" """EnumString2 unit test stubs"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.enum_test import EnumTest
from petstore_api.models.enum_test import EnumTest # noqa: E501
from petstore_api.rest import ApiException
class TestEnumTest(unittest.TestCase): class TestEnumTest(unittest.TestCase):
"""EnumTest unit test stubs""" """EnumTest unit test stubs"""
@ -28,23 +25,33 @@ class TestEnumTest(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> EnumTest:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.enum_test.EnumTest() # noqa: E501 # uncomment below to create an instance of `EnumTest`
if include_optional : """
model = EnumTest()
if include_optional:
return EnumTest( return EnumTest(
enum_string = 'UPPER', enum_string = 'UPPER',
enum_string_required = 'UPPER', enum_string_required = 'UPPER',
enum_integer_default = 1,
enum_integer = 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( return EnumTest(
enum_string_required = 'UPPER', enum_string_required = 'UPPER',
) )
"""
def testEnumTest(self): def testEnumTest(self):
"""Test EnumTest""" """Test EnumTest"""

View File

@ -3,134 +3,270 @@
""" """
OpenAPI Petstore 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 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 unittest
import petstore_api from petstore_api.api.fake_api import FakeApi
from petstore_api.api.fake_api import FakeApi # noqa: E501
from petstore_api.rest import ApiException
class TestFakeApi(unittest.TestCase): class TestFakeApi(unittest.IsolatedAsyncioTestCase):
"""FakeApi unit test stubs""" """FakeApi unit test stubs"""
def setUp(self): async def asyncSetUp(self) -> None:
self.api = petstore_api.api.fake_api.FakeApi() # noqa: E501 self.api = FakeApi()
def tearDown(self): async def asyncTearDown(self) -> None:
pass 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 """Test case for fake_health_get
Health check endpoint # noqa: E501 Health check endpoint
""" """
pass 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 case for fake_http_signature_test
test http signature authentication # noqa: E501 test http signature authentication
""" """
pass pass
def test_fake_outer_boolean_serialize(self): async def test_fake_outer_boolean_serialize(self) -> None:
"""Test case for fake_outer_boolean_serialize """Test case for fake_outer_boolean_serialize
""" """
pass pass
def test_fake_outer_composite_serialize(self): async def test_fake_outer_composite_serialize(self) -> None:
"""Test case for fake_outer_composite_serialize """Test case for fake_outer_composite_serialize
""" """
pass pass
def test_fake_outer_number_serialize(self): async def test_fake_outer_number_serialize(self) -> None:
"""Test case for fake_outer_number_serialize """Test case for fake_outer_number_serialize
""" """
pass pass
def test_fake_outer_string_serialize(self): async def test_fake_outer_string_serialize(self) -> None:
"""Test case for fake_outer_string_serialize """Test case for fake_outer_string_serialize
""" """
pass 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 """Test case for fake_property_enum_integer_serialize
""" """
pass 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 """Test case for test_body_with_binary
""" """
pass 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 """Test case for test_body_with_file_schema
""" """
pass 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 """Test case for test_body_with_query_params
""" """
pass pass
def test_test_client_model(self): async def test_test_client_model(self) -> None:
"""Test case for test_client_model """Test case for test_client_model
To test \"client\" model # noqa: E501 To test \"client\" model
""" """
pass 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 """Test case for test_endpoint_parameters
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # noqa: E501 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
""" """
pass 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 """Test case for test_group_parameters
Fake endpoint to test group parameters (optional) # noqa: E501 Fake endpoint to test group parameters (optional)
""" """
pass 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 case for test_inline_additional_properties
test inline additionalProperties # noqa: E501 test inline additionalProperties
""" """
pass 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 case for test_json_form_data
test json serialization of form data # noqa: E501 test json serialization of form data
""" """
pass 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 """Test case for test_query_parameter_collection_format
""" """
pass 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__': if __name__ == '__main__':
unittest.main() unittest.main()

View File

@ -3,35 +3,33 @@
""" """
OpenAPI Petstore 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 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 unittest
import petstore_api from petstore_api.api.fake_classname_tags123_api import FakeClassnameTags123Api
from petstore_api.api.fake_classname_tags123_api import FakeClassnameTags123Api # noqa: E501
from petstore_api.rest import ApiException
class TestFakeClassnameTags123Api(unittest.TestCase): class TestFakeClassnameTags123Api(unittest.IsolatedAsyncioTestCase):
"""FakeClassnameTags123Api unit test stubs""" """FakeClassnameTags123Api unit test stubs"""
def setUp(self): async def asyncSetUp(self) -> None:
self.api = petstore_api.api.fake_classname_tags123_api.FakeClassnameTags123Api() # noqa: E501 self.api = FakeClassnameTags123Api()
def tearDown(self): async def asyncTearDown(self) -> None:
pass pass
def test_test_classname(self): async def test_test_classname(self) -> None:
"""Test case for test_classname """Test case for test_classname
To test class name in snake case # noqa: E501 To test class name in snake case
""" """
pass pass

View File

@ -13,7 +13,6 @@
import unittest import unittest
import datetime
from petstore_api.models.feeding import Feeding from petstore_api.models.feeding import Feeding
@ -28,7 +27,7 @@ class TestFeeding(unittest.TestCase):
def make_instance(self, include_optional) -> Feeding: def make_instance(self, include_optional) -> Feeding:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `Feeding` # uncomment below to create an instance of `Feeding`

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.file import File
from petstore_api.models.file import File # noqa: E501
from petstore_api.rest import ApiException
class TestFile(unittest.TestCase): class TestFile(unittest.TestCase):
"""File unit test stubs""" """File unit test stubs"""
@ -28,19 +25,22 @@ class TestFile(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> File:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.file.File() # noqa: E501 # uncomment below to create an instance of `File`
if include_optional : """
model = File()
if include_optional:
return File( return File(
source_uri = '' source_uri = ''
) )
else : else:
return File( return File(
) )
"""
def testFile(self): def testFile(self):
"""Test File""" """Test File"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.file_schema_test_class import FileSchemaTestClass
from petstore_api.models.file_schema_test_class import FileSchemaTestClass # noqa: E501
from petstore_api.rest import ApiException
class TestFileSchemaTestClass(unittest.TestCase): class TestFileSchemaTestClass(unittest.TestCase):
"""FileSchemaTestClass unit test stubs""" """FileSchemaTestClass unit test stubs"""
@ -28,13 +25,15 @@ class TestFileSchemaTestClass(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> FileSchemaTestClass:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.file_schema_test_class.FileSchemaTestClass() # noqa: E501 # uncomment below to create an instance of `FileSchemaTestClass`
if include_optional : """
model = FileSchemaTestClass()
if include_optional:
return FileSchemaTestClass( return FileSchemaTestClass(
file = petstore_api.models.file.File( file = petstore_api.models.file.File(
source_uri = '', ), source_uri = '', ),
@ -43,9 +42,10 @@ class TestFileSchemaTestClass(unittest.TestCase):
source_uri = '', ) source_uri = '', )
] ]
) )
else : else:
return FileSchemaTestClass( return FileSchemaTestClass(
) )
"""
def testFileSchemaTestClass(self): def testFileSchemaTestClass(self):
"""Test FileSchemaTestClass""" """Test FileSchemaTestClass"""

View File

@ -3,23 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
from __future__ import absolute_import
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.first_ref import FirstRef
from petstore_api.models.first_ref import FirstRef # noqa: E501
from petstore_api.rest import ApiException
class TestFirstRef(unittest.TestCase): class TestFirstRef(unittest.TestCase):
"""FirstRef unit test stubs""" """FirstRef unit test stubs"""
@ -30,15 +25,15 @@ class TestFirstRef(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> FirstRef:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `FirstRef` # uncomment below to create an instance of `FirstRef`
""" """
model = petstore_api.models.first_ref.FirstRef() # noqa: E501 model = FirstRef()
if include_optional : if include_optional:
return FirstRef( return FirstRef(
category = '', category = '',
self_ref = petstore_api.models.second_ref.SecondRef( self_ref = petstore_api.models.second_ref.SecondRef(
@ -48,7 +43,7 @@ class TestFirstRef(unittest.TestCase):
nested = petstore_api.models.first_ref.FirstRef( nested = petstore_api.models.first_ref.FirstRef(
category = '', ), ), ) category = '', ), ), )
) )
else : else:
return FirstRef( return FirstRef(
) )
""" """

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.foo import Foo
from petstore_api.models.foo import Foo # noqa: E501
from petstore_api.rest import ApiException
class TestFoo(unittest.TestCase): class TestFoo(unittest.TestCase):
"""Foo unit test stubs""" """Foo unit test stubs"""
@ -28,19 +25,22 @@ class TestFoo(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> Foo:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.foo.Foo() # noqa: E501 # uncomment below to create an instance of `Foo`
if include_optional : """
model = Foo()
if include_optional:
return Foo( return Foo(
bar = 'bar' bar = 'bar'
) )
else : else:
return Foo( return Foo(
) )
"""
def testFoo(self): def testFoo(self):
"""Test Foo""" """Test Foo"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.foo_get_default_response import FooGetDefaultResponse
from petstore_api.models.foo_get_default_response import FooGetDefaultResponse # noqa: E501
from petstore_api.rest import ApiException
class TestFooGetDefaultResponse(unittest.TestCase): class TestFooGetDefaultResponse(unittest.TestCase):
"""FooGetDefaultResponse unit test stubs""" """FooGetDefaultResponse unit test stubs"""
@ -28,20 +25,23 @@ class TestFooGetDefaultResponse(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> FooGetDefaultResponse:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.foo_get_default_response.FooGetDefaultResponse() # noqa: E501 # uncomment below to create an instance of `FooGetDefaultResponse`
if include_optional : """
model = FooGetDefaultResponse()
if include_optional:
return FooGetDefaultResponse( return FooGetDefaultResponse(
string = petstore_api.models.foo.Foo( string = petstore_api.models.foo.Foo(
bar = 'bar', ) bar = 'bar', )
) )
else : else:
return FooGetDefaultResponse( return FooGetDefaultResponse(
) )
"""
def testFooGetDefaultResponse(self): def testFooGetDefaultResponse(self):
"""Test FooGetDefaultResponse""" """Test FooGetDefaultResponse"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.format_test import FormatTest
from petstore_api.models.format_test import FormatTest # noqa: E501
from petstore_api.rest import ApiException
class TestFormatTest(unittest.TestCase): class TestFormatTest(unittest.TestCase):
"""FormatTest unit test stubs""" """FormatTest unit test stubs"""
@ -28,37 +25,41 @@ class TestFormatTest(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> FormatTest:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.format_test.FormatTest() # noqa: E501 # uncomment below to create an instance of `FormatTest`
if include_optional : """
model = FormatTest()
if include_optional:
return FormatTest( return FormatTest(
integer = 10, integer = 10,
int32 = 20, int32 = 20,
int64 = 56, int64 = 56,
number = 32.1, number = 32.1,
float = 54.3, var_float = 54.3,
double = 67.8, double = 67.8,
decimal = 1,
string = 'a', string = 'a',
string_with_double_quote_pattern = 'this is \"something\"',
byte = 'YQ==', byte = 'YQ==',
binary = bytes(b'blah'), 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'), 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', uuid = '72f98069-206d-4f12-9f12-3d1e525a8e84',
password = '0123456789', password = '0123456789',
pattern_with_digits = '0480728880', pattern_with_digits = '0480728880',
pattern_with_digits_and_delimiter = 'image_480' pattern_with_digits_and_delimiter = 'image_480'
) )
else : else:
return FormatTest( return FormatTest(
number = 32.1, number = 32.1,
byte = 'YQ==', var_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
_date = datetime.datetime.strptime('1975-12-30', '%Y-%m-%d').date(),
password = '0123456789', password = '0123456789',
) )
"""
def testFormatTest(self): def testFormatTest(self):
"""Test FormatTest""" """Test FormatTest"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.has_only_read_only import HasOnlyReadOnly
from petstore_api.models.has_only_read_only import HasOnlyReadOnly # noqa: E501
from petstore_api.rest import ApiException
class TestHasOnlyReadOnly(unittest.TestCase): class TestHasOnlyReadOnly(unittest.TestCase):
"""HasOnlyReadOnly unit test stubs""" """HasOnlyReadOnly unit test stubs"""
@ -28,20 +25,23 @@ class TestHasOnlyReadOnly(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> HasOnlyReadOnly:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.has_only_read_only.HasOnlyReadOnly() # noqa: E501 # uncomment below to create an instance of `HasOnlyReadOnly`
if include_optional : """
model = HasOnlyReadOnly()
if include_optional:
return HasOnlyReadOnly( return HasOnlyReadOnly(
bar = '', bar = '',
foo = '' foo = ''
) )
else : else:
return HasOnlyReadOnly( return HasOnlyReadOnly(
) )
"""
def testHasOnlyReadOnly(self): def testHasOnlyReadOnly(self):
"""Test HasOnlyReadOnly""" """Test HasOnlyReadOnly"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.health_check_result import HealthCheckResult
from petstore_api.models.health_check_result import HealthCheckResult # noqa: E501
from petstore_api.rest import ApiException
class TestHealthCheckResult(unittest.TestCase): class TestHealthCheckResult(unittest.TestCase):
"""HealthCheckResult unit test stubs""" """HealthCheckResult unit test stubs"""
@ -28,19 +25,22 @@ class TestHealthCheckResult(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> HealthCheckResult:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.health_check_result.HealthCheckResult() # noqa: E501 # uncomment below to create an instance of `HealthCheckResult`
if include_optional : """
model = HealthCheckResult()
if include_optional:
return HealthCheckResult( return HealthCheckResult(
nullable_message = '' nullable_message = ''
) )
else : else:
return HealthCheckResult( return HealthCheckResult(
) )
"""
def testHealthCheckResult(self): def testHealthCheckResult(self):
"""Test HealthCheckResult""" """Test HealthCheckResult"""

View File

@ -17,16 +17,16 @@ import unittest
from petstore_api.api.import_test_datetime_api import ImportTestDatetimeApi from petstore_api.api.import_test_datetime_api import ImportTestDatetimeApi
class TestImportTestDatetimeApi(unittest.TestCase): class TestImportTestDatetimeApi(unittest.IsolatedAsyncioTestCase):
"""ImportTestDatetimeApi unit test stubs""" """ImportTestDatetimeApi unit test stubs"""
def setUp(self) -> None: async def asyncSetUp(self) -> None:
self.api = ImportTestDatetimeApi() self.api = ImportTestDatetimeApi()
def tearDown(self) -> None: async def asyncTearDown(self) -> None:
pass 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 case for import_test_return_datetime
test date time test date time

View File

@ -27,7 +27,7 @@ class TestInfo(unittest.TestCase):
def make_instance(self, include_optional) -> Info: def make_instance(self, include_optional) -> Info:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `Info` # uncomment below to create an instance of `Info`

View File

@ -3,23 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
from __future__ import absolute_import
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.inner_dict_with_property import InnerDictWithProperty
from petstore_api.models.inner_dict_with_property import InnerDictWithProperty # noqa: E501
from petstore_api.rest import ApiException
class TestInnerDictWithProperty(unittest.TestCase): class TestInnerDictWithProperty(unittest.TestCase):
"""InnerDictWithProperty unit test stubs""" """InnerDictWithProperty unit test stubs"""
@ -30,19 +25,19 @@ class TestInnerDictWithProperty(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> InnerDictWithProperty:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `InnerDictWithProperty` # uncomment below to create an instance of `InnerDictWithProperty`
""" """
model = petstore_api.models.inner_dict_with_property.InnerDictWithProperty() # noqa: E501 model = InnerDictWithProperty()
if include_optional : if include_optional:
return InnerDictWithProperty( return InnerDictWithProperty(
a_property = None a_property = None
) )
else : else:
return InnerDictWithProperty( return InnerDictWithProperty(
) )
""" """

View File

@ -27,7 +27,7 @@ class TestInputAllOf(unittest.TestCase):
def make_instance(self, include_optional) -> InputAllOf: def make_instance(self, include_optional) -> InputAllOf:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `InputAllOf` # uncomment below to create an instance of `InputAllOf`

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.int_or_string import IntOrString
from petstore_api.models.int_or_string import IntOrString # noqa: E501
from petstore_api.rest import ApiException
class TestIntOrString(unittest.TestCase): class TestIntOrString(unittest.TestCase):
"""IntOrString unit test stubs""" """IntOrString unit test stubs"""
@ -28,18 +25,18 @@ class TestIntOrString(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> IntOrString:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `IntOrString` # uncomment below to create an instance of `IntOrString`
""" """
model = petstore_api.models.int_or_string.IntOrString() # noqa: E501 model = IntOrString()
if include_optional : if include_optional:
return IntOrString( return IntOrString(
) )
else : else:
return IntOrString( return IntOrString(
) )
""" """

View File

@ -13,9 +13,8 @@
import unittest 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): class TestListClass(unittest.TestCase):
"""ListClass unit test stubs""" """ListClass unit test stubs"""
@ -28,12 +27,12 @@ class TestListClass(unittest.TestCase):
def make_instance(self, include_optional) -> ListClass: def make_instance(self, include_optional) -> ListClass:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `ListClass` # uncomment below to create an instance of `ListClass`
""" """
model = ListClass() # noqa: E501 model = ListClass()
if include_optional: if include_optional:
return ListClass( return ListClass(
var_123_list = '' var_123_list = ''

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.map_of_array_of_model import MapOfArrayOfModel
from petstore_api.models.map_of_array_of_model import MapOfArrayOfModel # noqa: E501
from petstore_api.rest import ApiException
class TestMapOfArrayOfModel(unittest.TestCase): class TestMapOfArrayOfModel(unittest.TestCase):
"""MapOfArrayOfModel unit test stubs""" """MapOfArrayOfModel unit test stubs"""
@ -28,15 +25,15 @@ class TestMapOfArrayOfModel(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> MapOfArrayOfModel:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `MapOfArrayOfModel` # uncomment below to create an instance of `MapOfArrayOfModel`
""" """
model = petstore_api.models.map_of_array_of_model.MapOfArrayOfModel() # noqa: E501 model = MapOfArrayOfModel()
if include_optional : if include_optional:
return MapOfArrayOfModel( return MapOfArrayOfModel(
shop_id_to_org_online_lip_map = { shop_id_to_org_online_lip_map = {
'key' : [ 'key' : [
@ -46,7 +43,7 @@ class TestMapOfArrayOfModel(unittest.TestCase):
] ]
} }
) )
else : else:
return MapOfArrayOfModel( return MapOfArrayOfModel(
) )
""" """

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.map_test import MapTest
from petstore_api.models.map_test import MapTest # noqa: E501
from petstore_api.rest import ApiException
class TestMapTest(unittest.TestCase): class TestMapTest(unittest.TestCase):
"""MapTest unit test stubs""" """MapTest unit test stubs"""
@ -28,13 +25,15 @@ class TestMapTest(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> MapTest:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.map_test.MapTest() # noqa: E501 # uncomment below to create an instance of `MapTest`
if include_optional : """
model = MapTest()
if include_optional:
return MapTest( return MapTest(
map_map_of_string = { map_map_of_string = {
'key' : { 'key' : {
@ -51,9 +50,10 @@ class TestMapTest(unittest.TestCase):
'key' : True 'key' : True
} }
) )
else : else:
return MapTest( return MapTest(
) )
"""
def testMapTest(self): def testMapTest(self):
"""Test MapTest""" """Test MapTest"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass
from petstore_api.models.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass # noqa: E501
from petstore_api.rest import ApiException
class TestMixedPropertiesAndAdditionalPropertiesClass(unittest.TestCase): class TestMixedPropertiesAndAdditionalPropertiesClass(unittest.TestCase):
"""MixedPropertiesAndAdditionalPropertiesClass unit test stubs""" """MixedPropertiesAndAdditionalPropertiesClass unit test stubs"""
@ -28,13 +25,15 @@ class TestMixedPropertiesAndAdditionalPropertiesClass(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> MixedPropertiesAndAdditionalPropertiesClass:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.mixed_properties_and_additional_properties_class.MixedPropertiesAndAdditionalPropertiesClass() # noqa: E501 # uncomment below to create an instance of `MixedPropertiesAndAdditionalPropertiesClass`
if include_optional : """
model = MixedPropertiesAndAdditionalPropertiesClass()
if include_optional:
return MixedPropertiesAndAdditionalPropertiesClass( return MixedPropertiesAndAdditionalPropertiesClass(
uuid = '', uuid = '',
date_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), 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', ) color = 'red', )
} }
) )
else : else:
return MixedPropertiesAndAdditionalPropertiesClass( return MixedPropertiesAndAdditionalPropertiesClass(
) )
"""
def testMixedPropertiesAndAdditionalPropertiesClass(self): def testMixedPropertiesAndAdditionalPropertiesClass(self):
"""Test MixedPropertiesAndAdditionalPropertiesClass""" """Test MixedPropertiesAndAdditionalPropertiesClass"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.model200_response import Model200Response
from petstore_api.models.model200_response import Model200Response # noqa: E501
from petstore_api.rest import ApiException
class TestModel200Response(unittest.TestCase): class TestModel200Response(unittest.TestCase):
"""Model200Response unit test stubs""" """Model200Response unit test stubs"""
@ -28,20 +25,23 @@ class TestModel200Response(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> Model200Response:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.model200_response.Model200Response() # noqa: E501 # uncomment below to create an instance of `Model200Response`
if include_optional : """
model = Model200Response()
if include_optional:
return Model200Response( return Model200Response(
name = 56, name = 56,
_class = '' var_class = ''
) )
else : else:
return Model200Response( return Model200Response(
) )
"""
def testModel200Response(self): def testModel200Response(self):
"""Test Model200Response""" """Test Model200Response"""

View File

@ -13,7 +13,6 @@
import unittest import unittest
import datetime
from petstore_api.models.model_api_response import ModelApiResponse from petstore_api.models.model_api_response import ModelApiResponse
@ -28,7 +27,7 @@ class TestModelApiResponse(unittest.TestCase):
def make_instance(self, include_optional) -> ModelApiResponse: def make_instance(self, include_optional) -> ModelApiResponse:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `ModelApiResponse` # uncomment below to create an instance of `ModelApiResponse`

View File

@ -27,7 +27,7 @@ class TestModelField(unittest.TestCase):
def make_instance(self, include_optional) -> ModelField: def make_instance(self, include_optional) -> ModelField:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `ModelField` # uncomment below to create an instance of `ModelField`
@ -35,7 +35,7 @@ class TestModelField(unittest.TestCase):
model = ModelField() model = ModelField()
if include_optional: if include_optional:
return ModelField( return ModelField(
dummy = '' var_field = ''
) )
else: else:
return ModelField( return ModelField(

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.model_return import ModelReturn
from petstore_api.models.model_return import ModelReturn # noqa: E501
from petstore_api.rest import ApiException
class TestModelReturn(unittest.TestCase): class TestModelReturn(unittest.TestCase):
"""ModelReturn unit test stubs""" """ModelReturn unit test stubs"""
@ -28,19 +25,22 @@ class TestModelReturn(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> ModelReturn:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.model_return.ModelReturn() # noqa: E501 # uncomment below to create an instance of `ModelReturn`
if include_optional : """
model = ModelReturn()
if include_optional:
return ModelReturn( return ModelReturn(
_return = 56 var_return = 56
) )
else : else:
return ModelReturn( return ModelReturn(
) )
"""
def testModelReturn(self): def testModelReturn(self):
"""Test ModelReturn""" """Test ModelReturn"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.name import Name
from petstore_api.models.name import Name # noqa: E501
from petstore_api.rest import ApiException
class TestName(unittest.TestCase): class TestName(unittest.TestCase):
"""Name unit test stubs""" """Name unit test stubs"""
@ -28,23 +25,26 @@ class TestName(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> Name:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.name.Name() # noqa: E501 # uncomment below to create an instance of `Name`
if include_optional : """
model = Name()
if include_optional:
return Name( return Name(
name = 56, name = 56,
snake_case = 56, snake_case = 56,
_property = '', var_property = '',
_123_number = 56 var_123_number = 56
) )
else : else:
return Name( return Name(
name = 56, name = 56,
) )
"""
def testName(self): def testName(self):
"""Test Name""" """Test Name"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.nullable_class import NullableClass
from petstore_api.models.nullable_class import NullableClass # noqa: E501
from petstore_api.rest import ApiException
class TestNullableClass(unittest.TestCase): class TestNullableClass(unittest.TestCase):
"""NullableClass unit test stubs""" """NullableClass unit test stubs"""
@ -28,13 +25,15 @@ class TestNullableClass(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> NullableClass:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.nullable_class.NullableClass() # noqa: E501 # uncomment below to create an instance of `NullableClass`
if include_optional : """
model = NullableClass()
if include_optional:
return NullableClass( return NullableClass(
required_integer_prop = 56, required_integer_prop = 56,
integer_prop = 56, integer_prop = 56,
@ -62,10 +61,11 @@ class TestNullableClass(unittest.TestCase):
'key' : None 'key' : None
} }
) )
else : else:
return NullableClass( return NullableClass(
required_integer_prop = 56, required_integer_prop = 56,
) )
"""
def testNullableClass(self): def testNullableClass(self):
"""Test NullableClass""" """Test NullableClass"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.nullable_property import NullableProperty
from petstore_api.models.nullable_property import NullableProperty # noqa: E501
from petstore_api.rest import ApiException
class TestNullableProperty(unittest.TestCase): class TestNullableProperty(unittest.TestCase):
"""NullableProperty unit test stubs""" """NullableProperty unit test stubs"""
@ -28,20 +25,20 @@ class TestNullableProperty(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> NullableProperty:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `NullableProperty` # uncomment below to create an instance of `NullableProperty`
""" """
model = petstore_api.models.nullable_property.NullableProperty() # noqa: E501 model = NullableProperty()
if include_optional : if include_optional:
return NullableProperty( return NullableProperty(
id = 56, id = 56,
name = 'AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>' name = 'AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>'
) )
else : else:
return NullableProperty( return NullableProperty(
id = 56, id = 56,
name = 'AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>', name = 'AUR,rZ#UM/?R,Fp^l6$ARjbhJk C>',

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.number_only import NumberOnly
from petstore_api.models.number_only import NumberOnly # noqa: E501
from petstore_api.rest import ApiException
class TestNumberOnly(unittest.TestCase): class TestNumberOnly(unittest.TestCase):
"""NumberOnly unit test stubs""" """NumberOnly unit test stubs"""
@ -28,19 +25,22 @@ class TestNumberOnly(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> NumberOnly:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.number_only.NumberOnly() # noqa: E501 # uncomment below to create an instance of `NumberOnly`
if include_optional : """
model = NumberOnly()
if include_optional:
return NumberOnly( return NumberOnly(
just_number = 1.337 just_number = 1.337
) )
else : else:
return NumberOnly( return NumberOnly(
) )
"""
def testNumberOnly(self): def testNumberOnly(self):
"""Test NumberOnly""" """Test NumberOnly"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.object_to_test_additional_properties import ObjectToTestAdditionalProperties
from petstore_api.models.object_to_test_additional_properties import ObjectToTestAdditionalProperties # noqa: E501
from petstore_api.rest import ApiException
class TestObjectToTestAdditionalProperties(unittest.TestCase): class TestObjectToTestAdditionalProperties(unittest.TestCase):
"""ObjectToTestAdditionalProperties unit test stubs""" """ObjectToTestAdditionalProperties unit test stubs"""
@ -28,19 +25,19 @@ class TestObjectToTestAdditionalProperties(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> ObjectToTestAdditionalProperties:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `ObjectToTestAdditionalProperties` # uncomment below to create an instance of `ObjectToTestAdditionalProperties`
""" """
model = petstore_api.models.object_to_test_additional_properties.ObjectToTestAdditionalProperties() # noqa: E501 model = ObjectToTestAdditionalProperties()
if include_optional : if include_optional:
return ObjectToTestAdditionalProperties( return ObjectToTestAdditionalProperties(
var_property = True var_property = True
) )
else : else:
return ObjectToTestAdditionalProperties( return ObjectToTestAdditionalProperties(
) )
""" """

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.object_with_deprecated_fields import ObjectWithDeprecatedFields
from petstore_api.models.object_with_deprecated_fields import ObjectWithDeprecatedFields # noqa: E501
from petstore_api.rest import ApiException
class TestObjectWithDeprecatedFields(unittest.TestCase): class TestObjectWithDeprecatedFields(unittest.TestCase):
"""ObjectWithDeprecatedFields unit test stubs""" """ObjectWithDeprecatedFields unit test stubs"""
@ -28,13 +25,15 @@ class TestObjectWithDeprecatedFields(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> ObjectWithDeprecatedFields:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.object_with_deprecated_fields.ObjectWithDeprecatedFields() # noqa: E501 # uncomment below to create an instance of `ObjectWithDeprecatedFields`
if include_optional : """
model = ObjectWithDeprecatedFields()
if include_optional:
return ObjectWithDeprecatedFields( return ObjectWithDeprecatedFields(
uuid = '', uuid = '',
id = 1.337, id = 1.337,
@ -44,9 +43,10 @@ class TestObjectWithDeprecatedFields(unittest.TestCase):
'bar' 'bar'
] ]
) )
else : else:
return ObjectWithDeprecatedFields( return ObjectWithDeprecatedFields(
) )
"""
def testObjectWithDeprecatedFields(self): def testObjectWithDeprecatedFields(self):
"""Test ObjectWithDeprecatedFields""" """Test ObjectWithDeprecatedFields"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.one_of_enum_string import OneOfEnumString
from petstore_api.models.one_of_enum_string import OneOfEnumString # noqa: E501
from petstore_api.rest import ApiException
class TestOneOfEnumString(unittest.TestCase): class TestOneOfEnumString(unittest.TestCase):
"""OneOfEnumString unit test stubs""" """OneOfEnumString unit test stubs"""
@ -28,18 +25,18 @@ class TestOneOfEnumString(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> OneOfEnumString:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `OneOfEnumString` # uncomment below to create an instance of `OneOfEnumString`
""" """
model = petstore_api.models.one_of_enum_string.OneOfEnumString() # noqa: E501 model = OneOfEnumString()
if include_optional : if include_optional:
return OneOfEnumString( return OneOfEnumString(
) )
else : else:
return OneOfEnumString( return OneOfEnumString(
) )
""" """

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.order import Order
from petstore_api.models.order import Order # noqa: E501
from petstore_api.rest import ApiException
class TestOrder(unittest.TestCase): class TestOrder(unittest.TestCase):
"""Order unit test stubs""" """Order unit test stubs"""
@ -28,13 +25,15 @@ class TestOrder(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> Order:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.order.Order() # noqa: E501 # uncomment below to create an instance of `Order`
if include_optional : """
model = Order()
if include_optional:
return Order( return Order(
id = 56, id = 56,
pet_id = 56, pet_id = 56,
@ -43,9 +42,10 @@ class TestOrder(unittest.TestCase):
status = 'placed', status = 'placed',
complete = True complete = True
) )
else : else:
return Order( return Order(
) )
"""
def testOrder(self): def testOrder(self):
"""Test Order""" """Test Order"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.outer_composite import OuterComposite
from petstore_api.models.outer_composite import OuterComposite # noqa: E501
from petstore_api.rest import ApiException
class TestOuterComposite(unittest.TestCase): class TestOuterComposite(unittest.TestCase):
"""OuterComposite unit test stubs""" """OuterComposite unit test stubs"""
@ -28,21 +25,24 @@ class TestOuterComposite(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> OuterComposite:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.outer_composite.OuterComposite() # noqa: E501 # uncomment below to create an instance of `OuterComposite`
if include_optional : """
model = OuterComposite()
if include_optional:
return OuterComposite( return OuterComposite(
my_number = 1.337, my_number = 1.337,
my_string = '', my_string = '',
my_boolean = True my_boolean = True
) )
else : else:
return OuterComposite( return OuterComposite(
) )
"""
def testOuterComposite(self): def testOuterComposite(self):
"""Test OuterComposite""" """Test OuterComposite"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.outer_enum import OuterEnum
from petstore_api.models.outer_enum import OuterEnum # noqa: E501
from petstore_api.rest import ApiException
class TestOuterEnum(unittest.TestCase): class TestOuterEnum(unittest.TestCase):
"""OuterEnum unit test stubs""" """OuterEnum unit test stubs"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.outer_enum_default_value import OuterEnumDefaultValue
from petstore_api.models.outer_enum_default_value import OuterEnumDefaultValue # noqa: E501
from petstore_api.rest import ApiException
class TestOuterEnumDefaultValue(unittest.TestCase): class TestOuterEnumDefaultValue(unittest.TestCase):
"""OuterEnumDefaultValue unit test stubs""" """OuterEnumDefaultValue unit test stubs"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.outer_enum_integer import OuterEnumInteger
from petstore_api.models.outer_enum_integer import OuterEnumInteger # noqa: E501
from petstore_api.rest import ApiException
class TestOuterEnumInteger(unittest.TestCase): class TestOuterEnumInteger(unittest.TestCase):
"""OuterEnumInteger unit test stubs""" """OuterEnumInteger unit test stubs"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue
from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue # noqa: E501
from petstore_api.rest import ApiException
class TestOuterEnumIntegerDefaultValue(unittest.TestCase): class TestOuterEnumIntegerDefaultValue(unittest.TestCase):
"""OuterEnumIntegerDefaultValue unit test stubs""" """OuterEnumIntegerDefaultValue unit test stubs"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.outer_object_with_enum_property import OuterObjectWithEnumProperty
from petstore_api.models.outer_object_with_enum_property import OuterObjectWithEnumProperty # noqa: E501
from petstore_api.rest import ApiException
class TestOuterObjectWithEnumProperty(unittest.TestCase): class TestOuterObjectWithEnumProperty(unittest.TestCase):
"""OuterObjectWithEnumProperty unit test stubs""" """OuterObjectWithEnumProperty unit test stubs"""
@ -28,20 +25,24 @@ class TestOuterObjectWithEnumProperty(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> OuterObjectWithEnumProperty:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.outer_object_with_enum_property.OuterObjectWithEnumProperty() # noqa: E501 # uncomment below to create an instance of `OuterObjectWithEnumProperty`
if include_optional : """
model = OuterObjectWithEnumProperty()
if include_optional:
return OuterObjectWithEnumProperty( return OuterObjectWithEnumProperty(
str_value = 'placed',
value = 2 value = 2
) )
else : else:
return OuterObjectWithEnumProperty( return OuterObjectWithEnumProperty(
value = 2, value = 2,
) )
"""
def testOuterObjectWithEnumProperty(self): def testOuterObjectWithEnumProperty(self):
"""Test OuterObjectWithEnumProperty""" """Test OuterObjectWithEnumProperty"""

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.parent import Parent
from petstore_api.models.parent import Parent # noqa: E501
from petstore_api.rest import ApiException
class TestParent(unittest.TestCase): class TestParent(unittest.TestCase):
"""Parent unit test stubs""" """Parent unit test stubs"""
@ -28,22 +25,22 @@ class TestParent(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> Parent:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `Parent` # uncomment below to create an instance of `Parent`
""" """
model = petstore_api.models.parent.Parent() # noqa: E501 model = Parent()
if include_optional : if include_optional:
return Parent( return Parent(
optional_dict = { optional_dict = {
'key' : petstore_api.models.inner_dict_with_property.InnerDictWithProperty( 'key' : petstore_api.models.inner_dict_with_property.InnerDictWithProperty(
a_property = petstore_api.models.a_property.aProperty(), ) a_property = petstore_api.models.a_property.aProperty(), )
} }
) )
else : else:
return Parent( return Parent(
) )
""" """

View File

@ -3,23 +3,18 @@
""" """
OpenAPI Petstore 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 The version of the OpenAPI document: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech) Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually. Do not edit the class manually.
""" """ # noqa: E501
from __future__ import absolute_import
import unittest import unittest
import datetime
import petstore_api from petstore_api.models.parent_with_optional_dict import ParentWithOptionalDict
from petstore_api.models.parent_with_optional_dict import ParentWithOptionalDict # noqa: E501
from petstore_api.rest import ApiException
class TestParentWithOptionalDict(unittest.TestCase): class TestParentWithOptionalDict(unittest.TestCase):
"""ParentWithOptionalDict unit test stubs""" """ParentWithOptionalDict unit test stubs"""
@ -30,22 +25,22 @@ class TestParentWithOptionalDict(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> ParentWithOptionalDict:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# uncomment below to create an instance of `ParentWithOptionalDict` # uncomment below to create an instance of `ParentWithOptionalDict`
""" """
model = petstore_api.models.parent_with_optional_dict.ParentWithOptionalDict() # noqa: E501 model = ParentWithOptionalDict()
if include_optional : if include_optional:
return ParentWithOptionalDict( return ParentWithOptionalDict(
optional_dict = { optional_dict = {
'key' : petstore_api.models.inner_dict_with_property.InnerDictWithProperty( 'key' : petstore_api.models.inner_dict_with_property.InnerDictWithProperty(
a_property = petstore_api.models.a_property.aProperty(), ) a_property = petstore_api.models.a_property.aProperty(), )
} }
) )
else : else:
return ParentWithOptionalDict( return ParentWithOptionalDict(
) )
""" """

View File

@ -3,21 +3,18 @@
""" """
OpenAPI Petstore 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 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 unittest
import datetime
import petstore_api from petstore_api.models.pet import Pet
from petstore_api.models.pet import Pet # noqa: E501
from petstore_api.rest import ApiException
class TestPet(unittest.TestCase): class TestPet(unittest.TestCase):
"""Pet unit test stubs""" """Pet unit test stubs"""
@ -28,13 +25,15 @@ class TestPet(unittest.TestCase):
def tearDown(self): def tearDown(self):
pass pass
def make_instance(self, include_optional): def make_instance(self, include_optional) -> Pet:
"""Test 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 params are included, when True both required and
optional params are included """ optional params are included """
# model = petstore_api.models.pet.Pet() # noqa: E501 # uncomment below to create an instance of `Pet`
if include_optional : """
model = Pet()
if include_optional:
return Pet( return Pet(
id = 56, id = 56,
category = petstore_api.models.category.Category( category = petstore_api.models.category.Category(
@ -51,13 +50,14 @@ class TestPet(unittest.TestCase):
], ],
status = 'available' status = 'available'
) )
else : else:
return Pet( return Pet(
name = 'doggie', name = 'doggie',
photo_urls = [ photo_urls = [
'' ''
], ],
) )
"""
def testPet(self): def testPet(self):
"""Test Pet""" """Test Pet"""

View File

@ -3,91 +3,89 @@
""" """
OpenAPI Petstore 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 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 unittest
import petstore_api from petstore_api.api.pet_api import PetApi
from petstore_api.api.pet_api import PetApi # noqa: E501
from petstore_api.rest import ApiException
class TestPetApi(unittest.TestCase): class TestPetApi(unittest.IsolatedAsyncioTestCase):
"""PetApi unit test stubs""" """PetApi unit test stubs"""
def setUp(self): async def asyncSetUp(self) -> None:
self.api = petstore_api.api.pet_api.PetApi() # noqa: E501 self.api = PetApi()
def tearDown(self): async def asyncTearDown(self) -> None:
pass pass
def test_add_pet(self): async def test_add_pet(self) -> None:
"""Test case for add_pet """Test case for add_pet
Add a new pet to the store # noqa: E501 Add a new pet to the store
""" """
pass pass
def test_delete_pet(self): async def test_delete_pet(self) -> None:
"""Test case for delete_pet """Test case for delete_pet
Deletes a pet # noqa: E501 Deletes a pet
""" """
pass pass
def test_find_pets_by_status(self): async def test_find_pets_by_status(self) -> None:
"""Test case for find_pets_by_status """Test case for find_pets_by_status
Finds Pets by status # noqa: E501 Finds Pets by status
""" """
pass pass
def test_find_pets_by_tags(self): async def test_find_pets_by_tags(self) -> None:
"""Test case for find_pets_by_tags """Test case for find_pets_by_tags
Finds Pets by tags # noqa: E501 Finds Pets by tags
""" """
pass pass
def test_get_pet_by_id(self): async def test_get_pet_by_id(self) -> None:
"""Test case for get_pet_by_id """Test case for get_pet_by_id
Find pet by ID # noqa: E501 Find pet by ID
""" """
pass pass
def test_update_pet(self): async def test_update_pet(self) -> None:
"""Test case for update_pet """Test case for update_pet
Update an existing pet # noqa: E501 Update an existing pet
""" """
pass pass
def test_update_pet_with_form(self): async def test_update_pet_with_form(self) -> None:
"""Test case for update_pet_with_form """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 pass
def test_upload_file(self): async def test_upload_file(self) -> None:
"""Test case for upload_file """Test case for upload_file
uploads an image # noqa: E501 uploads an image
""" """
pass 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 """Test case for upload_file_with_required_file
uploads an image (required) # noqa: E501 uploads an image (required)
""" """
pass pass

Some files were not shown because too many files have changed in this diff Show More