mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-07 20:26:11 +00:00
[python] Renames python generators (#7965)
* python->python-legacy, python-experimental->python * test with openjdk8 * test with openjdk11 * comment out rm * move kotlin tests to circleci * move kotlin tests * move tests to circleci * fix circleci * rearrange test * move tests * use wrapper Co-authored-by: Justin Black <justin.a.black@gmail.com>
This commit is contained in:
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.additional_properties_class import AdditionalPropertiesClass # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.additional_properties_class import AdditionalPropertiesClass
|
||||
|
||||
|
||||
class TestAdditionalPropertiesClass(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestAdditionalPropertiesClass(unittest.TestCase):
|
||||
def testAdditionalPropertiesClass(self):
|
||||
"""Test AdditionalPropertiesClass"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.additional_properties_class.AdditionalPropertiesClass() # noqa: E501
|
||||
# model = AdditionalPropertiesClass() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.enum_class import EnumClass
|
||||
globals()['EnumClass'] = EnumClass
|
||||
from petstore_api.model.additional_properties_with_array_of_enums import AdditionalPropertiesWithArrayOfEnums
|
||||
|
||||
|
||||
class TestAdditionalPropertiesWithArrayOfEnums(unittest.TestCase):
|
||||
"""AdditionalPropertiesWithArrayOfEnums unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testAdditionalPropertiesWithArrayOfEnums(self):
|
||||
"""Test AdditionalPropertiesWithArrayOfEnums"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = AdditionalPropertiesWithArrayOfEnums() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,22 +5,20 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.outer_enum import OuterEnum # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.address import Address
|
||||
|
||||
|
||||
class TestOuterEnum(unittest.TestCase):
|
||||
"""OuterEnum unit test stubs"""
|
||||
class TestAddress(unittest.TestCase):
|
||||
"""Address unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
@@ -28,10 +26,10 @@ class TestOuterEnum(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testOuterEnum(self):
|
||||
"""Test OuterEnum"""
|
||||
def testAddress(self):
|
||||
"""Test Address"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.outer_enum.OuterEnum() # noqa: E501
|
||||
# model = Address() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
@@ -5,18 +5,20 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.animal import Animal # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.cat import Cat
|
||||
from petstore_api.model.dog import Dog
|
||||
globals()['Cat'] = Cat
|
||||
globals()['Dog'] = Dog
|
||||
from petstore_api.model.animal import Animal
|
||||
|
||||
|
||||
class TestAnimal(unittest.TestCase):
|
||||
@@ -31,7 +33,7 @@ class TestAnimal(unittest.TestCase):
|
||||
def testAnimal(self):
|
||||
"""Test Animal"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.animal.Animal() # noqa: E501
|
||||
# model = Animal() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,22 +5,22 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.outer_composite import OuterComposite # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.animal import Animal
|
||||
globals()['Animal'] = Animal
|
||||
from petstore_api.model.animal_farm import AnimalFarm
|
||||
|
||||
|
||||
class TestOuterComposite(unittest.TestCase):
|
||||
"""OuterComposite unit test stubs"""
|
||||
class TestAnimalFarm(unittest.TestCase):
|
||||
"""AnimalFarm unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
@@ -28,10 +28,10 @@ class TestOuterComposite(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testOuterComposite(self):
|
||||
"""Test OuterComposite"""
|
||||
def testAnimalFarm(self):
|
||||
"""Test AnimalFarm"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.outer_composite.OuterComposite() # noqa: E501
|
||||
# model = AnimalFarm() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
@@ -5,25 +5,22 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.api.another_fake_api import AnotherFakeApi # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
|
||||
class TestAnotherFakeApi(unittest.TestCase):
|
||||
"""AnotherFakeApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = petstore_api.api.another_fake_api.AnotherFakeApi() # noqa: E501
|
||||
self.api = AnotherFakeApi() # noqa: E501
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.api_response import ApiResponse # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.api_response import ApiResponse
|
||||
|
||||
|
||||
class TestApiResponse(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestApiResponse(unittest.TestCase):
|
||||
def testApiResponse(self):
|
||||
"""Test ApiResponse"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.api_response.ApiResponse() # noqa: E501
|
||||
# model = ApiResponse() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,22 +5,20 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.outer_enum_integer import OuterEnumInteger # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.apple import Apple
|
||||
|
||||
|
||||
class TestOuterEnumInteger(unittest.TestCase):
|
||||
"""OuterEnumInteger unit test stubs"""
|
||||
class TestApple(unittest.TestCase):
|
||||
"""Apple unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
@@ -28,10 +26,10 @@ class TestOuterEnumInteger(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testOuterEnumInteger(self):
|
||||
"""Test OuterEnumInteger"""
|
||||
def testApple(self):
|
||||
"""Test Apple"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.outer_enum_integer.OuterEnumInteger() # noqa: E501
|
||||
# model = Apple() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
@@ -5,22 +5,20 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.outer_enum_default_value import OuterEnumDefaultValue # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.apple_req import AppleReq
|
||||
|
||||
|
||||
class TestOuterEnumDefaultValue(unittest.TestCase):
|
||||
"""OuterEnumDefaultValue unit test stubs"""
|
||||
class TestAppleReq(unittest.TestCase):
|
||||
"""AppleReq unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
@@ -28,10 +26,10 @@ class TestOuterEnumDefaultValue(unittest.TestCase):
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testOuterEnumDefaultValue(self):
|
||||
"""Test OuterEnumDefaultValue"""
|
||||
def testAppleReq(self):
|
||||
"""Test AppleReq"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.outer_enum_default_value.OuterEnumDefaultValue() # noqa: E501
|
||||
# model = AppleReq() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly
|
||||
|
||||
|
||||
class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
|
||||
def testArrayOfArrayOfNumberOnly(self):
|
||||
"""Test ArrayOfArrayOfNumberOnly"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.array_of_array_of_number_only.ArrayOfArrayOfNumberOnly() # noqa: E501
|
||||
# model = ArrayOfArrayOfNumberOnly() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.string_enum import StringEnum
|
||||
globals()['StringEnum'] = StringEnum
|
||||
from petstore_api.model.array_of_enums import ArrayOfEnums
|
||||
|
||||
|
||||
class TestArrayOfEnums(unittest.TestCase):
|
||||
"""ArrayOfEnums unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testArrayOfEnums(self):
|
||||
"""Test ArrayOfEnums"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = ArrayOfEnums() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.array_of_number_only import ArrayOfNumberOnly # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.array_of_number_only import ArrayOfNumberOnly
|
||||
|
||||
|
||||
class TestArrayOfNumberOnly(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestArrayOfNumberOnly(unittest.TestCase):
|
||||
def testArrayOfNumberOnly(self):
|
||||
"""Test ArrayOfNumberOnly"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.array_of_number_only.ArrayOfNumberOnly() # noqa: E501
|
||||
# model = ArrayOfNumberOnly() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,18 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.array_test import ArrayTest # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.read_only_first import ReadOnlyFirst
|
||||
globals()['ReadOnlyFirst'] = ReadOnlyFirst
|
||||
from petstore_api.model.array_test import ArrayTest
|
||||
|
||||
|
||||
class TestArrayTest(unittest.TestCase):
|
||||
@@ -31,7 +31,7 @@ class TestArrayTest(unittest.TestCase):
|
||||
def testArrayTest(self):
|
||||
"""Test ArrayTest"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.array_test.ArrayTest() # noqa: E501
|
||||
# model = ArrayTest() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
37
samples/openapi3/client/petstore/python/test/test_banana.py
Normal file
37
samples/openapi3/client/petstore/python/test/test_banana.py
Normal file
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.banana import Banana
|
||||
|
||||
|
||||
class TestBanana(unittest.TestCase):
|
||||
"""Banana unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testBanana(self):
|
||||
"""Test Banana"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = Banana() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.banana_req import BananaReq
|
||||
|
||||
|
||||
class TestBananaReq(unittest.TestCase):
|
||||
"""BananaReq unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testBananaReq(self):
|
||||
"""Test BananaReq"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = BananaReq() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.basque_pig import BasquePig
|
||||
|
||||
|
||||
class TestBasquePig(unittest.TestCase):
|
||||
"""BasquePig unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testBasquePig(self):
|
||||
"""Test BasquePig"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = BasquePig() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.capitalization import Capitalization # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.capitalization import Capitalization
|
||||
|
||||
|
||||
class TestCapitalization(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestCapitalization(unittest.TestCase):
|
||||
def testCapitalization(self):
|
||||
"""Test Capitalization"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.capitalization.Capitalization() # noqa: E501
|
||||
# model = Capitalization() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,22 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.cat import Cat # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.address import Address
|
||||
from petstore_api.model.animal import Animal
|
||||
from petstore_api.model.cat_all_of import CatAllOf
|
||||
globals()['Address'] = Address
|
||||
globals()['Animal'] = Animal
|
||||
globals()['CatAllOf'] = CatAllOf
|
||||
from petstore_api.model.cat import Cat
|
||||
|
||||
|
||||
class TestCat(unittest.TestCase):
|
||||
@@ -31,7 +35,7 @@ class TestCat(unittest.TestCase):
|
||||
def testCat(self):
|
||||
"""Test Cat"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.cat.Cat() # noqa: E501
|
||||
# model = Cat() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.cat_all_of import CatAllOf # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.cat_all_of import CatAllOf
|
||||
|
||||
|
||||
class TestCatAllOf(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestCatAllOf(unittest.TestCase):
|
||||
def testCatAllOf(self):
|
||||
"""Test CatAllOf"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.cat_all_of.CatAllOf() # noqa: E501
|
||||
# model = CatAllOf() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.category import Category # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.category import Category
|
||||
|
||||
|
||||
class TestCategory(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestCategory(unittest.TestCase):
|
||||
def testCategory(self):
|
||||
"""Test Category"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.category.Category() # noqa: E501
|
||||
# model = Category() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.child_cat_all_of import ChildCatAllOf
|
||||
from petstore_api.model.parent_pet import ParentPet
|
||||
globals()['ChildCatAllOf'] = ChildCatAllOf
|
||||
globals()['ParentPet'] = ParentPet
|
||||
from petstore_api.model.child_cat import ChildCat
|
||||
|
||||
|
||||
class TestChildCat(unittest.TestCase):
|
||||
"""ChildCat unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testChildCat(self):
|
||||
"""Test ChildCat"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = ChildCat() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.child_cat_all_of import ChildCatAllOf
|
||||
|
||||
|
||||
class TestChildCatAllOf(unittest.TestCase):
|
||||
"""ChildCatAllOf unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testChildCatAllOf(self):
|
||||
"""Test ChildCatAllOf"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = ChildCatAllOf() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.class_model import ClassModel # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.class_model import ClassModel
|
||||
|
||||
|
||||
class TestClassModel(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestClassModel(unittest.TestCase):
|
||||
def testClassModel(self):
|
||||
"""Test ClassModel"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.class_model.ClassModel() # noqa: E501
|
||||
# model = ClassModel() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.client import Client # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.client import Client
|
||||
|
||||
|
||||
class TestClient(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestClient(unittest.TestCase):
|
||||
def testClient(self):
|
||||
"""Test Client"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.client.Client() # noqa: E501
|
||||
# model = Client() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.quadrilateral_interface import QuadrilateralInterface
|
||||
from petstore_api.model.shape_interface import ShapeInterface
|
||||
globals()['QuadrilateralInterface'] = QuadrilateralInterface
|
||||
globals()['ShapeInterface'] = ShapeInterface
|
||||
from petstore_api.model.complex_quadrilateral import ComplexQuadrilateral
|
||||
|
||||
|
||||
class TestComplexQuadrilateral(unittest.TestCase):
|
||||
"""ComplexQuadrilateral unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testComplexQuadrilateral(self):
|
||||
"""Test ComplexQuadrilateral"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = ComplexQuadrilateral() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,41 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.animal import Animal
|
||||
from petstore_api.model.number_with_validations import NumberWithValidations
|
||||
globals()['Animal'] = Animal
|
||||
globals()['NumberWithValidations'] = NumberWithValidations
|
||||
from petstore_api.model.composed_one_of_number_with_validations import ComposedOneOfNumberWithValidations
|
||||
|
||||
|
||||
class TestComposedOneOfNumberWithValidations(unittest.TestCase):
|
||||
"""ComposedOneOfNumberWithValidations unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testComposedOneOfNumberWithValidations(self):
|
||||
"""Test ComposedOneOfNumberWithValidations"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = ComposedOneOfNumberWithValidations() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -1,54 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api import Configuration # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
|
||||
class TestConfiguration(unittest.TestCase):
|
||||
"""Confgiruation unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.config= Configuration()
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def test_configuration(self):
|
||||
"""Test configuration
|
||||
|
||||
Test host settings # noqa: E501
|
||||
"""
|
||||
host_settings = self.config.get_host_settings()
|
||||
|
||||
self.assertEqual('http://{server}.swagger.io:{port}/v2', host_settings[0]['url'])
|
||||
self.assertEqual('petstore', host_settings[0]['variables']['server']['default_value'])
|
||||
|
||||
self.assertEqual('https://localhost:8080/{version}', host_settings[1]['url'])
|
||||
self.assertEqual('v2', host_settings[1]['variables']['version']['default_value'])
|
||||
|
||||
def test_get_host_from_settings(self):
|
||||
""" Test get_host_from_settings
|
||||
|
||||
Test get URL from host settings
|
||||
"""
|
||||
self.assertEqual("http://petstore.swagger.io:80/v2", self.config.get_host_from_settings(0))
|
||||
self.assertEqual("http://petstore.swagger.io:8080/v2", self.config.get_host_from_settings(0, {'port': '8080'}))
|
||||
self.assertEqual("http://dev-petstore.swagger.io:8080/v2", self.config.get_host_from_settings(0, {'server': 'dev-petstore', 'port': '8080'}))
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.danish_pig import DanishPig
|
||||
|
||||
|
||||
class TestDanishPig(unittest.TestCase):
|
||||
"""DanishPig unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testDanishPig(self):
|
||||
"""Test DanishPig"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = DanishPig() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,25 +5,22 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.api.default_api import DefaultApi # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
|
||||
class TestDefaultApi(unittest.TestCase):
|
||||
"""DefaultApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = petstore_api.api.default_api.DefaultApi() # noqa: E501
|
||||
self.api = DefaultApi() # noqa: E501
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
@@ -5,18 +5,20 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.dog import Dog # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.animal import Animal
|
||||
from petstore_api.model.dog_all_of import DogAllOf
|
||||
globals()['Animal'] = Animal
|
||||
globals()['DogAllOf'] = DogAllOf
|
||||
from petstore_api.model.dog import Dog
|
||||
|
||||
|
||||
class TestDog(unittest.TestCase):
|
||||
@@ -31,7 +33,7 @@ class TestDog(unittest.TestCase):
|
||||
def testDog(self):
|
||||
"""Test Dog"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.dog.Dog() # noqa: E501
|
||||
# model = Dog() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.dog_all_of import DogAllOf # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.dog_all_of import DogAllOf
|
||||
|
||||
|
||||
class TestDogAllOf(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestDogAllOf(unittest.TestCase):
|
||||
def testDogAllOf(self):
|
||||
"""Test DogAllOf"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.dog_all_of.DogAllOf() # noqa: E501
|
||||
# model = DogAllOf() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
45
samples/openapi3/client/petstore/python/test/test_drawing.py
Normal file
45
samples/openapi3/client/petstore/python/test/test_drawing.py
Normal file
@@ -0,0 +1,45 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.fruit import Fruit
|
||||
from petstore_api.model.nullable_shape import NullableShape
|
||||
from petstore_api.model.shape import Shape
|
||||
from petstore_api.model.shape_or_null import ShapeOrNull
|
||||
globals()['Fruit'] = Fruit
|
||||
globals()['NullableShape'] = NullableShape
|
||||
globals()['Shape'] = Shape
|
||||
globals()['ShapeOrNull'] = ShapeOrNull
|
||||
from petstore_api.model.drawing import Drawing
|
||||
|
||||
|
||||
class TestDrawing(unittest.TestCase):
|
||||
"""Drawing unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testDrawing(self):
|
||||
"""Test Drawing"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = Drawing() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.enum_arrays import EnumArrays # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.enum_arrays import EnumArrays
|
||||
|
||||
|
||||
class TestEnumArrays(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestEnumArrays(unittest.TestCase):
|
||||
def testEnumArrays(self):
|
||||
"""Test EnumArrays"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.enum_arrays.EnumArrays() # noqa: E501
|
||||
# model = EnumArrays() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.enum_class import EnumClass # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.enum_class import EnumClass
|
||||
|
||||
|
||||
class TestEnumClass(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestEnumClass(unittest.TestCase):
|
||||
def testEnumClass(self):
|
||||
"""Test EnumClass"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.enum_class.EnumClass() # noqa: E501
|
||||
# model = EnumClass() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,26 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.enum_test import EnumTest # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.integer_enum import IntegerEnum
|
||||
from petstore_api.model.integer_enum_one_value import IntegerEnumOneValue
|
||||
from petstore_api.model.integer_enum_with_default_value import IntegerEnumWithDefaultValue
|
||||
from petstore_api.model.string_enum import StringEnum
|
||||
from petstore_api.model.string_enum_with_default_value import StringEnumWithDefaultValue
|
||||
globals()['IntegerEnum'] = IntegerEnum
|
||||
globals()['IntegerEnumOneValue'] = IntegerEnumOneValue
|
||||
globals()['IntegerEnumWithDefaultValue'] = IntegerEnumWithDefaultValue
|
||||
globals()['StringEnum'] = StringEnum
|
||||
globals()['StringEnumWithDefaultValue'] = StringEnumWithDefaultValue
|
||||
from petstore_api.model.enum_test import EnumTest
|
||||
|
||||
|
||||
class TestEnumTest(unittest.TestCase):
|
||||
@@ -31,7 +39,7 @@ class TestEnumTest(unittest.TestCase):
|
||||
def testEnumTest(self):
|
||||
"""Test EnumTest"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.enum_test.EnumTest() # noqa: E501
|
||||
# model = EnumTest() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.shape_interface import ShapeInterface
|
||||
from petstore_api.model.triangle_interface import TriangleInterface
|
||||
globals()['ShapeInterface'] = ShapeInterface
|
||||
globals()['TriangleInterface'] = TriangleInterface
|
||||
from petstore_api.model.equilateral_triangle import EquilateralTriangle
|
||||
|
||||
|
||||
class TestEquilateralTriangle(unittest.TestCase):
|
||||
"""EquilateralTriangle unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testEquilateralTriangle(self):
|
||||
"""Test EquilateralTriangle"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = EquilateralTriangle() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,49 +5,85 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.api.fake_api import FakeApi # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
|
||||
class TestFakeApi(unittest.TestCase):
|
||||
"""FakeApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = petstore_api.api.fake_api.FakeApi() # noqa: E501
|
||||
self.api = FakeApi() # noqa: E501
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def test_fake_outer_boolean_serialize(self):
|
||||
"""Test case for fake_outer_boolean_serialize
|
||||
def test_additional_properties_with_array_of_enums(self):
|
||||
"""Test case for additional_properties_with_array_of_enums
|
||||
|
||||
Additional Properties with Array of Enums # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_array_model(self):
|
||||
"""Test case for array_model
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_fake_outer_composite_serialize(self):
|
||||
"""Test case for fake_outer_composite_serialize
|
||||
def test_array_of_enums(self):
|
||||
"""Test case for array_of_enums
|
||||
|
||||
Array of Enums # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_boolean(self):
|
||||
"""Test case for boolean
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_fake_outer_number_serialize(self):
|
||||
"""Test case for fake_outer_number_serialize
|
||||
def test_composed_one_of_number_with_validations(self):
|
||||
"""Test case for composed_one_of_number_with_validations
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_fake_outer_string_serialize(self):
|
||||
"""Test case for fake_outer_string_serialize
|
||||
def test_fake_health_get(self):
|
||||
"""Test case for fake_health_get
|
||||
|
||||
Health check endpoint # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_number_with_validations(self):
|
||||
"""Test case for number_with_validations
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_object_model_with_ref_props(self):
|
||||
"""Test case for object_model_with_ref_props
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_string(self):
|
||||
"""Test case for string
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_string_enum(self):
|
||||
"""Test case for string_enum
|
||||
|
||||
"""
|
||||
pass
|
||||
@@ -106,6 +142,12 @@ class TestFakeApi(unittest.TestCase):
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_test_query_parameter_collection_format(self):
|
||||
"""Test case for test_query_parameter_collection_format
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
@@ -5,25 +5,22 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.api.fake_classname_tags_123_api import FakeClassnameTags123Api # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
|
||||
class TestFakeClassnameTags123Api(unittest.TestCase):
|
||||
"""FakeClassnameTags123Api unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = petstore_api.api.fake_classname_tags_123_api.FakeClassnameTags123Api() # noqa: E501
|
||||
self.api = FakeClassnameTags123Api() # noqa: E501
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.file import File # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.file import File
|
||||
|
||||
|
||||
class TestFile(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestFile(unittest.TestCase):
|
||||
def testFile(self):
|
||||
"""Test File"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.file.File() # noqa: E501
|
||||
# model = File() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,18 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.file_schema_test_class import FileSchemaTestClass # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.file import File
|
||||
globals()['File'] = File
|
||||
from petstore_api.model.file_schema_test_class import FileSchemaTestClass
|
||||
|
||||
|
||||
class TestFileSchemaTestClass(unittest.TestCase):
|
||||
@@ -31,7 +31,7 @@ class TestFileSchemaTestClass(unittest.TestCase):
|
||||
def testFileSchemaTestClass(self):
|
||||
"""Test FileSchemaTestClass"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.file_schema_test_class.FileSchemaTestClass() # noqa: E501
|
||||
# model = FileSchemaTestClass() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.foo import Foo # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.foo import Foo
|
||||
|
||||
|
||||
class TestFoo(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestFoo(unittest.TestCase):
|
||||
def testFoo(self):
|
||||
"""Test Foo"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.foo.Foo() # noqa: E501
|
||||
# model = Foo() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.format_test import FormatTest # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.format_test import FormatTest
|
||||
|
||||
|
||||
class TestFormatTest(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestFormatTest(unittest.TestCase):
|
||||
def testFormatTest(self):
|
||||
"""Test FormatTest"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.format_test.FormatTest() # noqa: E501
|
||||
# model = FormatTest() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
41
samples/openapi3/client/petstore/python/test/test_fruit.py
Normal file
41
samples/openapi3/client/petstore/python/test/test_fruit.py
Normal file
@@ -0,0 +1,41 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.apple import Apple
|
||||
from petstore_api.model.banana import Banana
|
||||
globals()['Apple'] = Apple
|
||||
globals()['Banana'] = Banana
|
||||
from petstore_api.model.fruit import Fruit
|
||||
|
||||
|
||||
class TestFruit(unittest.TestCase):
|
||||
"""Fruit unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testFruit(self):
|
||||
"""Test Fruit"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = Fruit() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,41 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.apple_req import AppleReq
|
||||
from petstore_api.model.banana_req import BananaReq
|
||||
globals()['AppleReq'] = AppleReq
|
||||
globals()['BananaReq'] = BananaReq
|
||||
from petstore_api.model.fruit_req import FruitReq
|
||||
|
||||
|
||||
class TestFruitReq(unittest.TestCase):
|
||||
"""FruitReq unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testFruitReq(self):
|
||||
"""Test FruitReq"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = FruitReq() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,41 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.apple import Apple
|
||||
from petstore_api.model.banana import Banana
|
||||
globals()['Apple'] = Apple
|
||||
globals()['Banana'] = Banana
|
||||
from petstore_api.model.gm_fruit import GmFruit
|
||||
|
||||
|
||||
class TestGmFruit(unittest.TestCase):
|
||||
"""GmFruit unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testGmFruit(self):
|
||||
"""Test GmFruit"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = GmFruit() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,41 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.child_cat import ChildCat
|
||||
from petstore_api.model.parent_pet import ParentPet
|
||||
globals()['ChildCat'] = ChildCat
|
||||
globals()['ParentPet'] = ParentPet
|
||||
from petstore_api.model.grandparent_animal import GrandparentAnimal
|
||||
|
||||
|
||||
class TestGrandparentAnimal(unittest.TestCase):
|
||||
"""GrandparentAnimal unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testGrandparentAnimal(self):
|
||||
"""Test GrandparentAnimal"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = GrandparentAnimal() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.has_only_read_only import HasOnlyReadOnly # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.has_only_read_only import HasOnlyReadOnly
|
||||
|
||||
|
||||
class TestHasOnlyReadOnly(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestHasOnlyReadOnly(unittest.TestCase):
|
||||
def testHasOnlyReadOnly(self):
|
||||
"""Test HasOnlyReadOnly"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.has_only_read_only.HasOnlyReadOnly() # noqa: E501
|
||||
# model = HasOnlyReadOnly() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.health_check_result import HealthCheckResult # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.health_check_result import HealthCheckResult
|
||||
|
||||
|
||||
class TestHealthCheckResult(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestHealthCheckResult(unittest.TestCase):
|
||||
def testHealthCheckResult(self):
|
||||
"""Test HealthCheckResult"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.health_check_result.HealthCheckResult() # noqa: E501
|
||||
# model = HealthCheckResult() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.inline_object import InlineObject # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.inline_object import InlineObject
|
||||
|
||||
|
||||
class TestInlineObject(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestInlineObject(unittest.TestCase):
|
||||
def testInlineObject(self):
|
||||
"""Test InlineObject"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.inline_object.InlineObject() # noqa: E501
|
||||
# model = InlineObject() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.inline_object1 import InlineObject1 # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.inline_object1 import InlineObject1
|
||||
|
||||
|
||||
class TestInlineObject1(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestInlineObject1(unittest.TestCase):
|
||||
def testInlineObject1(self):
|
||||
"""Test InlineObject1"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.inline_object1.InlineObject1() # noqa: E501
|
||||
# model = InlineObject1() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.inline_object2 import InlineObject2 # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.inline_object2 import InlineObject2
|
||||
|
||||
|
||||
class TestInlineObject2(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestInlineObject2(unittest.TestCase):
|
||||
def testInlineObject2(self):
|
||||
"""Test InlineObject2"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.inline_object2.InlineObject2() # noqa: E501
|
||||
# model = InlineObject2() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.inline_object3 import InlineObject3 # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.inline_object3 import InlineObject3
|
||||
|
||||
|
||||
class TestInlineObject3(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestInlineObject3(unittest.TestCase):
|
||||
def testInlineObject3(self):
|
||||
"""Test InlineObject3"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.inline_object3.InlineObject3() # noqa: E501
|
||||
# model = InlineObject3() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.inline_object4 import InlineObject4 # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.inline_object4 import InlineObject4
|
||||
|
||||
|
||||
class TestInlineObject4(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestInlineObject4(unittest.TestCase):
|
||||
def testInlineObject4(self):
|
||||
"""Test InlineObject4"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.inline_object4.InlineObject4() # noqa: E501
|
||||
# model = InlineObject4() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.inline_object5 import InlineObject5 # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.inline_object5 import InlineObject5
|
||||
|
||||
|
||||
class TestInlineObject5(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestInlineObject5(unittest.TestCase):
|
||||
def testInlineObject5(self):
|
||||
"""Test InlineObject5"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.inline_object5.InlineObject5() # noqa: E501
|
||||
# model = InlineObject5() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,18 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.inline_response_default import InlineResponseDefault # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.foo import Foo
|
||||
globals()['Foo'] = Foo
|
||||
from petstore_api.model.inline_response_default import InlineResponseDefault
|
||||
|
||||
|
||||
class TestInlineResponseDefault(unittest.TestCase):
|
||||
@@ -31,7 +31,7 @@ class TestInlineResponseDefault(unittest.TestCase):
|
||||
def testInlineResponseDefault(self):
|
||||
"""Test InlineResponseDefault"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.inline_response_default.InlineResponseDefault() # noqa: E501
|
||||
# model = InlineResponseDefault() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.integer_enum import IntegerEnum
|
||||
|
||||
|
||||
class TestIntegerEnum(unittest.TestCase):
|
||||
"""IntegerEnum unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testIntegerEnum(self):
|
||||
"""Test IntegerEnum"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = IntegerEnum() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.integer_enum_one_value import IntegerEnumOneValue
|
||||
|
||||
|
||||
class TestIntegerEnumOneValue(unittest.TestCase):
|
||||
"""IntegerEnumOneValue unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testIntegerEnumOneValue(self):
|
||||
"""Test IntegerEnumOneValue"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = IntegerEnumOneValue() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.integer_enum_with_default_value import IntegerEnumWithDefaultValue
|
||||
|
||||
|
||||
class TestIntegerEnumWithDefaultValue(unittest.TestCase):
|
||||
"""IntegerEnumWithDefaultValue unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testIntegerEnumWithDefaultValue(self):
|
||||
"""Test IntegerEnumWithDefaultValue"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = IntegerEnumWithDefaultValue() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,41 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.shape_interface import ShapeInterface
|
||||
from petstore_api.model.triangle_interface import TriangleInterface
|
||||
globals()['ShapeInterface'] = ShapeInterface
|
||||
globals()['TriangleInterface'] = TriangleInterface
|
||||
from petstore_api.model.isosceles_triangle import IsoscelesTriangle
|
||||
|
||||
|
||||
class TestIsoscelesTriangle(unittest.TestCase):
|
||||
"""IsoscelesTriangle unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testIsoscelesTriangle(self):
|
||||
"""Test IsoscelesTriangle"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = IsoscelesTriangle() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.list import List # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.list import List
|
||||
|
||||
|
||||
class TestList(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestList(unittest.TestCase):
|
||||
def testList(self):
|
||||
"""Test List"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.list.List() # noqa: E501
|
||||
# model = List() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
43
samples/openapi3/client/petstore/python/test/test_mammal.py
Normal file
43
samples/openapi3/client/petstore/python/test/test_mammal.py
Normal file
@@ -0,0 +1,43 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.pig import Pig
|
||||
from petstore_api.model.whale import Whale
|
||||
from petstore_api.model.zebra import Zebra
|
||||
globals()['Pig'] = Pig
|
||||
globals()['Whale'] = Whale
|
||||
globals()['Zebra'] = Zebra
|
||||
from petstore_api.model.mammal import Mammal
|
||||
|
||||
|
||||
class TestMammal(unittest.TestCase):
|
||||
"""Mammal unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testMammal(self):
|
||||
"""Test Mammal"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = Mammal() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,18 +5,18 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.map_test import MapTest # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.string_boolean_map import StringBooleanMap
|
||||
globals()['StringBooleanMap'] = StringBooleanMap
|
||||
from petstore_api.model.map_test import MapTest
|
||||
|
||||
|
||||
class TestMapTest(unittest.TestCase):
|
||||
@@ -31,7 +31,7 @@ class TestMapTest(unittest.TestCase):
|
||||
def testMapTest(self):
|
||||
"""Test MapTest"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.map_test.MapTest() # noqa: E501
|
||||
# model = MapTest() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,18 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.animal import Animal
|
||||
globals()['Animal'] = Animal
|
||||
from petstore_api.model.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass
|
||||
|
||||
|
||||
class TestMixedPropertiesAndAdditionalPropertiesClass(unittest.TestCase):
|
||||
@@ -31,7 +31,7 @@ class TestMixedPropertiesAndAdditionalPropertiesClass(unittest.TestCase):
|
||||
def testMixedPropertiesAndAdditionalPropertiesClass(self):
|
||||
"""Test MixedPropertiesAndAdditionalPropertiesClass"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.mixed_properties_and_additional_properties_class.MixedPropertiesAndAdditionalPropertiesClass() # noqa: E501
|
||||
# model = MixedPropertiesAndAdditionalPropertiesClass() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.model200_response import Model200Response # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.model200_response import Model200Response
|
||||
|
||||
|
||||
class TestModel200Response(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestModel200Response(unittest.TestCase):
|
||||
def testModel200Response(self):
|
||||
"""Test Model200Response"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.model200_response.Model200Response() # noqa: E501
|
||||
# model = Model200Response() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.model_return import ModelReturn # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.model_return import ModelReturn
|
||||
|
||||
|
||||
class TestModelReturn(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestModelReturn(unittest.TestCase):
|
||||
def testModelReturn(self):
|
||||
"""Test ModelReturn"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.model_return.ModelReturn() # noqa: E501
|
||||
# model = ModelReturn() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.name import Name # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.name import Name
|
||||
|
||||
|
||||
class TestName(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestName(unittest.TestCase):
|
||||
def testName(self):
|
||||
"""Test Name"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.name.Name() # noqa: E501
|
||||
# model = Name() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.nullable_class import NullableClass # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.nullable_class import NullableClass
|
||||
|
||||
|
||||
class TestNullableClass(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestNullableClass(unittest.TestCase):
|
||||
def testNullableClass(self):
|
||||
"""Test NullableClass"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.nullable_class.NullableClass() # noqa: E501
|
||||
# model = NullableClass() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.quadrilateral import Quadrilateral
|
||||
from petstore_api.model.triangle import Triangle
|
||||
globals()['Quadrilateral'] = Quadrilateral
|
||||
globals()['Triangle'] = Triangle
|
||||
from petstore_api.model.nullable_shape import NullableShape
|
||||
|
||||
|
||||
class TestNullableShape(unittest.TestCase):
|
||||
"""NullableShape unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testNullableShape(self):
|
||||
"""Test NullableShape"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = NullableShape() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.number_only import NumberOnly # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.number_only import NumberOnly
|
||||
|
||||
|
||||
class TestNumberOnly(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestNumberOnly(unittest.TestCase):
|
||||
def testNumberOnly(self):
|
||||
"""Test NumberOnly"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.number_only.NumberOnly() # noqa: E501
|
||||
# model = NumberOnly() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.number_with_validations import NumberWithValidations
|
||||
|
||||
|
||||
class TestNumberWithValidations(unittest.TestCase):
|
||||
"""NumberWithValidations unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testNumberWithValidations(self):
|
||||
"""Test NumberWithValidations"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = NumberWithValidations() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.object_interface import ObjectInterface
|
||||
|
||||
|
||||
class TestObjectInterface(unittest.TestCase):
|
||||
"""ObjectInterface unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testObjectInterface(self):
|
||||
"""Test ObjectInterface"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = ObjectInterface() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,39 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.number_with_validations import NumberWithValidations
|
||||
globals()['NumberWithValidations'] = NumberWithValidations
|
||||
from petstore_api.model.object_model_with_ref_props import ObjectModelWithRefProps
|
||||
|
||||
|
||||
class TestObjectModelWithRefProps(unittest.TestCase):
|
||||
"""ObjectModelWithRefProps unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testObjectModelWithRefProps(self):
|
||||
"""Test ObjectModelWithRefProps"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = ObjectModelWithRefProps() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.object_with_validations import ObjectWithValidations
|
||||
|
||||
|
||||
class TestObjectWithValidations(unittest.TestCase):
|
||||
"""ObjectWithValidations unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testObjectWithValidations(self):
|
||||
"""Test ObjectWithValidations"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = ObjectWithValidations() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.order import Order # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.order import Order
|
||||
|
||||
|
||||
class TestOrder(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestOrder(unittest.TestCase):
|
||||
def testOrder(self):
|
||||
"""Test Order"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.order.Order() # noqa: E501
|
||||
# model = Order() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.outer_enum_integer_default_value import OuterEnumIntegerDefaultValue # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
|
||||
class TestOuterEnumIntegerDefaultValue(unittest.TestCase):
|
||||
"""OuterEnumIntegerDefaultValue unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testOuterEnumIntegerDefaultValue(self):
|
||||
"""Test OuterEnumIntegerDefaultValue"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.outer_enum_integer_default_value.OuterEnumIntegerDefaultValue() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,41 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.child_cat import ChildCat
|
||||
from petstore_api.model.grandparent_animal import GrandparentAnimal
|
||||
globals()['ChildCat'] = ChildCat
|
||||
globals()['GrandparentAnimal'] = GrandparentAnimal
|
||||
from petstore_api.model.parent_pet import ParentPet
|
||||
|
||||
|
||||
class TestParentPet(unittest.TestCase):
|
||||
"""ParentPet unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testParentPet(self):
|
||||
"""Test ParentPet"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = ParentPet() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,18 +5,20 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.pet import Pet # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.category import Category
|
||||
from petstore_api.model.tag import Tag
|
||||
globals()['Category'] = Category
|
||||
globals()['Tag'] = Tag
|
||||
from petstore_api.model.pet import Pet
|
||||
|
||||
|
||||
class TestPet(unittest.TestCase):
|
||||
@@ -31,7 +33,7 @@ class TestPet(unittest.TestCase):
|
||||
def testPet(self):
|
||||
"""Test Pet"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.pet.Pet() # noqa: E501
|
||||
# model = Pet() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,25 +5,22 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.api.pet_api import PetApi # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
|
||||
class TestPetApi(unittest.TestCase):
|
||||
"""PetApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = petstore_api.api.pet_api.PetApi() # noqa: E501
|
||||
self.api = PetApi() # noqa: E501
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
41
samples/openapi3/client/petstore/python/test/test_pig.py
Normal file
41
samples/openapi3/client/petstore/python/test/test_pig.py
Normal file
@@ -0,0 +1,41 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.basque_pig import BasquePig
|
||||
from petstore_api.model.danish_pig import DanishPig
|
||||
globals()['BasquePig'] = BasquePig
|
||||
globals()['DanishPig'] = DanishPig
|
||||
from petstore_api.model.pig import Pig
|
||||
|
||||
|
||||
class TestPig(unittest.TestCase):
|
||||
"""Pig unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testPig(self):
|
||||
"""Test Pig"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = Pig() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,41 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.complex_quadrilateral import ComplexQuadrilateral
|
||||
from petstore_api.model.simple_quadrilateral import SimpleQuadrilateral
|
||||
globals()['ComplexQuadrilateral'] = ComplexQuadrilateral
|
||||
globals()['SimpleQuadrilateral'] = SimpleQuadrilateral
|
||||
from petstore_api.model.quadrilateral import Quadrilateral
|
||||
|
||||
|
||||
class TestQuadrilateral(unittest.TestCase):
|
||||
"""Quadrilateral unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testQuadrilateral(self):
|
||||
"""Test Quadrilateral"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = Quadrilateral() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.quadrilateral_interface import QuadrilateralInterface
|
||||
|
||||
|
||||
class TestQuadrilateralInterface(unittest.TestCase):
|
||||
"""QuadrilateralInterface unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testQuadrilateralInterface(self):
|
||||
"""Test QuadrilateralInterface"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = QuadrilateralInterface() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.read_only_first import ReadOnlyFirst # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.read_only_first import ReadOnlyFirst
|
||||
|
||||
|
||||
class TestReadOnlyFirst(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestReadOnlyFirst(unittest.TestCase):
|
||||
def testReadOnlyFirst(self):
|
||||
"""Test ReadOnlyFirst"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.read_only_first.ReadOnlyFirst() # noqa: E501
|
||||
# model = ReadOnlyFirst() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.shape_interface import ShapeInterface
|
||||
from petstore_api.model.triangle_interface import TriangleInterface
|
||||
globals()['ShapeInterface'] = ShapeInterface
|
||||
globals()['TriangleInterface'] = TriangleInterface
|
||||
from petstore_api.model.scalene_triangle import ScaleneTriangle
|
||||
|
||||
|
||||
class TestScaleneTriangle(unittest.TestCase):
|
||||
"""ScaleneTriangle unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testScaleneTriangle(self):
|
||||
"""Test ScaleneTriangle"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = ScaleneTriangle() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
41
samples/openapi3/client/petstore/python/test/test_shape.py
Normal file
41
samples/openapi3/client/petstore/python/test/test_shape.py
Normal file
@@ -0,0 +1,41 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.quadrilateral import Quadrilateral
|
||||
from petstore_api.model.triangle import Triangle
|
||||
globals()['Quadrilateral'] = Quadrilateral
|
||||
globals()['Triangle'] = Triangle
|
||||
from petstore_api.model.shape import Shape
|
||||
|
||||
|
||||
class TestShape(unittest.TestCase):
|
||||
"""Shape unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testShape(self):
|
||||
"""Test Shape"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = Shape() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.shape_interface import ShapeInterface
|
||||
|
||||
|
||||
class TestShapeInterface(unittest.TestCase):
|
||||
"""ShapeInterface unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testShapeInterface(self):
|
||||
"""Test ShapeInterface"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = ShapeInterface() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,41 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.quadrilateral import Quadrilateral
|
||||
from petstore_api.model.triangle import Triangle
|
||||
globals()['Quadrilateral'] = Quadrilateral
|
||||
globals()['Triangle'] = Triangle
|
||||
from petstore_api.model.shape_or_null import ShapeOrNull
|
||||
|
||||
|
||||
class TestShapeOrNull(unittest.TestCase):
|
||||
"""ShapeOrNull unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testShapeOrNull(self):
|
||||
"""Test ShapeOrNull"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = ShapeOrNull() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,41 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.quadrilateral_interface import QuadrilateralInterface
|
||||
from petstore_api.model.shape_interface import ShapeInterface
|
||||
globals()['QuadrilateralInterface'] = QuadrilateralInterface
|
||||
globals()['ShapeInterface'] = ShapeInterface
|
||||
from petstore_api.model.simple_quadrilateral import SimpleQuadrilateral
|
||||
|
||||
|
||||
class TestSimpleQuadrilateral(unittest.TestCase):
|
||||
"""SimpleQuadrilateral unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testSimpleQuadrilateral(self):
|
||||
"""Test SimpleQuadrilateral"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = SimpleQuadrilateral() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,39 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.object_interface import ObjectInterface
|
||||
globals()['ObjectInterface'] = ObjectInterface
|
||||
from petstore_api.model.some_object import SomeObject
|
||||
|
||||
|
||||
class TestSomeObject(unittest.TestCase):
|
||||
"""SomeObject unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testSomeObject(self):
|
||||
"""Test SomeObject"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = SomeObject() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.special_model_name import SpecialModelName # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.special_model_name import SpecialModelName
|
||||
|
||||
|
||||
class TestSpecialModelName(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestSpecialModelName(unittest.TestCase):
|
||||
def testSpecialModelName(self):
|
||||
"""Test SpecialModelName"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.special_model_name.SpecialModelName() # noqa: E501
|
||||
# model = SpecialModelName() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,25 +5,22 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.api.store_api import StoreApi # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
|
||||
class TestStoreApi(unittest.TestCase):
|
||||
"""StoreApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = petstore_api.api.store_api.StoreApi() # noqa: E501
|
||||
self.api = StoreApi() # noqa: E501
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.string_boolean_map import StringBooleanMap
|
||||
|
||||
|
||||
class TestStringBooleanMap(unittest.TestCase):
|
||||
"""StringBooleanMap unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testStringBooleanMap(self):
|
||||
"""Test StringBooleanMap"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = StringBooleanMap() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.string_enum import StringEnum
|
||||
|
||||
|
||||
class TestStringEnum(unittest.TestCase):
|
||||
"""StringEnum unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testStringEnum(self):
|
||||
"""Test StringEnum"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = StringEnum() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.string_enum_with_default_value import StringEnumWithDefaultValue
|
||||
|
||||
|
||||
class TestStringEnumWithDefaultValue(unittest.TestCase):
|
||||
"""StringEnumWithDefaultValue unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testStringEnumWithDefaultValue(self):
|
||||
"""Test StringEnumWithDefaultValue"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = StringEnumWithDefaultValue() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.tag import Tag # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.tag import Tag
|
||||
|
||||
|
||||
class TestTag(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestTag(unittest.TestCase):
|
||||
def testTag(self):
|
||||
"""Test Tag"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.tag.Tag() # noqa: E501
|
||||
# model = Tag() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.equilateral_triangle import EquilateralTriangle
|
||||
from petstore_api.model.isosceles_triangle import IsoscelesTriangle
|
||||
from petstore_api.model.scalene_triangle import ScaleneTriangle
|
||||
globals()['EquilateralTriangle'] = EquilateralTriangle
|
||||
globals()['IsoscelesTriangle'] = IsoscelesTriangle
|
||||
globals()['ScaleneTriangle'] = ScaleneTriangle
|
||||
from petstore_api.model.triangle import Triangle
|
||||
|
||||
|
||||
class TestTriangle(unittest.TestCase):
|
||||
"""Triangle unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testTriangle(self):
|
||||
"""Test Triangle"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = Triangle() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.triangle_interface import TriangleInterface
|
||||
|
||||
|
||||
class TestTriangleInterface(unittest.TestCase):
|
||||
"""TriangleInterface unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testTriangleInterface(self):
|
||||
"""Test TriangleInterface"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = TriangleInterface() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -5,18 +5,16 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.models.user import User # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.model.user import User
|
||||
|
||||
|
||||
class TestUser(unittest.TestCase):
|
||||
@@ -31,7 +29,7 @@ class TestUser(unittest.TestCase):
|
||||
def testUser(self):
|
||||
"""Test User"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = petstore_api.models.user.User() # noqa: E501
|
||||
# model = User() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -5,25 +5,22 @@
|
||||
|
||||
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
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.api.user_api import UserApi # noqa: E501
|
||||
from petstore_api.rest import ApiException
|
||||
|
||||
|
||||
class TestUserApi(unittest.TestCase):
|
||||
"""UserApi unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
self.api = petstore_api.api.user_api.UserApi() # noqa: E501
|
||||
self.api = UserApi() # noqa: E501
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
37
samples/openapi3/client/petstore/python/test/test_whale.py
Normal file
37
samples/openapi3/client/petstore/python/test/test_whale.py
Normal file
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.whale import Whale
|
||||
|
||||
|
||||
class TestWhale(unittest.TestCase):
|
||||
"""Whale unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testWhale(self):
|
||||
"""Test Whale"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = Whale() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
37
samples/openapi3/client/petstore/python/test/test_zebra.py
Normal file
37
samples/openapi3/client/petstore/python/test/test_zebra.py
Normal file
@@ -0,0 +1,37 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.zebra import Zebra
|
||||
|
||||
|
||||
class TestZebra(unittest.TestCase):
|
||||
"""Zebra unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testZebra(self):
|
||||
"""Test Zebra"""
|
||||
# FIXME: construct object with mandatory attributes with example values
|
||||
# model = Zebra() # noqa: E501
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user