[Python] Add configuration.{connection_pool_maxsize, assert_hostname} (#6508)

* Backport kubernetes client features:

- assert_hostname
- connection_pool_maxsize
- cleanups

* Update petstore sample
This commit is contained in:
Mehdy Bohlool
2017-09-18 10:25:33 -07:00
committed by wing328
parent d928617b69
commit f3c41e866c
292 changed files with 29674 additions and 14 deletions

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.additional_properties_class import AdditionalPropertiesClass
class TestAdditionalPropertiesClass(unittest.TestCase):
""" AdditionalPropertiesClass unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testAdditionalPropertiesClass(self):
"""
Test AdditionalPropertiesClass
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.additional_properties_class.AdditionalPropertiesClass()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.animal import Animal
class TestAnimal(unittest.TestCase):
""" Animal unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testAnimal(self):
"""
Test Animal
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.animal.Animal()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.animal_farm import AnimalFarm
class TestAnimalFarm(unittest.TestCase):
""" AnimalFarm unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testAnimalFarm(self):
"""
Test AnimalFarm
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.animal_farm.AnimalFarm()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.apis.another_fake_api import AnotherFakeApi
class TestAnotherFakeApi(unittest.TestCase):
""" AnotherFakeApi unit test stubs """
def setUp(self):
self.api = petstore_api.apis.another_fake_api.AnotherFakeApi()
def tearDown(self):
pass
def test_test_special_tags(self):
"""
Test case for test_special_tags
To test special tags
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.api_response import ApiResponse
class TestApiResponse(unittest.TestCase):
""" ApiResponse unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testApiResponse(self):
"""
Test ApiResponse
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.api_response.ApiResponse()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly
class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
""" ArrayOfArrayOfNumberOnly unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
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()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.array_of_number_only import ArrayOfNumberOnly
class TestArrayOfNumberOnly(unittest.TestCase):
""" ArrayOfNumberOnly unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testArrayOfNumberOnly(self):
"""
Test ArrayOfNumberOnly
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.array_of_number_only.ArrayOfNumberOnly()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.array_test import ArrayTest
class TestArrayTest(unittest.TestCase):
""" ArrayTest unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testArrayTest(self):
"""
Test ArrayTest
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.array_test.ArrayTest()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.capitalization import Capitalization
class TestCapitalization(unittest.TestCase):
""" Capitalization unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testCapitalization(self):
"""
Test Capitalization
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.capitalization.Capitalization()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.cat import Cat
class TestCat(unittest.TestCase):
""" Cat unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testCat(self):
"""
Test Cat
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.cat.Cat()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.category import Category
class TestCategory(unittest.TestCase):
""" Category unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testCategory(self):
"""
Test Category
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.category.Category()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.class_model import ClassModel
class TestClassModel(unittest.TestCase):
""" ClassModel unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testClassModel(self):
"""
Test ClassModel
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.class_model.ClassModel()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.client import Client
class TestClient(unittest.TestCase):
""" Client unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testClient(self):
"""
Test Client
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.client.Client()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.dog import Dog
class TestDog(unittest.TestCase):
""" Dog unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testDog(self):
"""
Test Dog
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.dog.Dog()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.enum_arrays import EnumArrays
class TestEnumArrays(unittest.TestCase):
""" EnumArrays unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testEnumArrays(self):
"""
Test EnumArrays
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.enum_arrays.EnumArrays()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.enum_class import EnumClass
class TestEnumClass(unittest.TestCase):
""" EnumClass unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testEnumClass(self):
"""
Test EnumClass
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.enum_class.EnumClass()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.enum_test import EnumTest
class TestEnumTest(unittest.TestCase):
""" EnumTest unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testEnumTest(self):
"""
Test EnumTest
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.enum_test.EnumTest()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,100 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.apis.fake_api import FakeApi
class TestFakeApi(unittest.TestCase):
""" FakeApi unit test stubs """
def setUp(self):
self.api = petstore_api.apis.fake_api.FakeApi()
def tearDown(self):
pass
def test_fake_outer_boolean_serialize(self):
"""
Test case for fake_outer_boolean_serialize
"""
pass
def test_fake_outer_composite_serialize(self):
"""
Test case for fake_outer_composite_serialize
"""
pass
def test_fake_outer_number_serialize(self):
"""
Test case for fake_outer_number_serialize
"""
pass
def test_fake_outer_string_serialize(self):
"""
Test case for fake_outer_string_serialize
"""
pass
def test_test_client_model(self):
"""
Test case for test_client_model
To test \"client\" model
"""
pass
def test_test_endpoint_parameters(self):
"""
Test case for test_endpoint_parameters
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
"""
pass
def test_test_enum_parameters(self):
"""
Test case for test_enum_parameters
To test enum parameters
"""
pass
def test_test_json_form_data(self):
"""
Test case for test_json_form_data
test json serialization of form data
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.apis.fake_classname_tags_123_api import FakeClassnameTags123Api
class TestFakeClassnameTags123Api(unittest.TestCase):
""" FakeClassnameTags123Api unit test stubs """
def setUp(self):
self.api = petstore_api.apis.fake_classname_tags_123_api.FakeClassnameTags123Api()
def tearDown(self):
pass
def test_test_classname(self):
"""
Test case for test_classname
To test class name in snake case
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.format_test import FormatTest
class TestFormatTest(unittest.TestCase):
""" FormatTest unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testFormatTest(self):
"""
Test FormatTest
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.format_test.FormatTest()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.has_only_read_only import HasOnlyReadOnly
class TestHasOnlyReadOnly(unittest.TestCase):
""" HasOnlyReadOnly unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testHasOnlyReadOnly(self):
"""
Test HasOnlyReadOnly
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.has_only_read_only.HasOnlyReadOnly()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.list import List
class TestList(unittest.TestCase):
""" List unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testList(self):
"""
Test List
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.list.List()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.map_test import MapTest
class TestMapTest(unittest.TestCase):
""" MapTest unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testMapTest(self):
"""
Test MapTest
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.map_test.MapTest()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass
class TestMixedPropertiesAndAdditionalPropertiesClass(unittest.TestCase):
""" MixedPropertiesAndAdditionalPropertiesClass unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
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()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.model_200_response import Model200Response
class TestModel200Response(unittest.TestCase):
""" Model200Response unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testModel200Response(self):
"""
Test Model200Response
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.model_200_response.Model200Response()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.model_return import ModelReturn
class TestModelReturn(unittest.TestCase):
""" ModelReturn unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testModelReturn(self):
"""
Test ModelReturn
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.model_return.ModelReturn()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.name import Name
class TestName(unittest.TestCase):
""" Name unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testName(self):
"""
Test Name
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.name.Name()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.number_only import NumberOnly
class TestNumberOnly(unittest.TestCase):
""" NumberOnly unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testNumberOnly(self):
"""
Test NumberOnly
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.number_only.NumberOnly()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.order import Order
class TestOrder(unittest.TestCase):
""" Order unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testOrder(self):
"""
Test Order
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.order.Order()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.outer_boolean import OuterBoolean
class TestOuterBoolean(unittest.TestCase):
""" OuterBoolean unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testOuterBoolean(self):
"""
Test OuterBoolean
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.outer_boolean.OuterBoolean()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.outer_composite import OuterComposite
class TestOuterComposite(unittest.TestCase):
""" OuterComposite unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testOuterComposite(self):
"""
Test OuterComposite
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.outer_composite.OuterComposite()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.outer_enum import OuterEnum
class TestOuterEnum(unittest.TestCase):
""" OuterEnum unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testOuterEnum(self):
"""
Test OuterEnum
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.outer_enum.OuterEnum()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.outer_number import OuterNumber
class TestOuterNumber(unittest.TestCase):
""" OuterNumber unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testOuterNumber(self):
"""
Test OuterNumber
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.outer_number.OuterNumber()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.outer_string import OuterString
class TestOuterString(unittest.TestCase):
""" OuterString unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testOuterString(self):
"""
Test OuterString
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.outer_string.OuterString()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.pet import Pet
class TestPet(unittest.TestCase):
""" Pet unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testPet(self):
"""
Test Pet
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.pet.Pet()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,100 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.apis.pet_api import PetApi
class TestPetApi(unittest.TestCase):
""" PetApi unit test stubs """
def setUp(self):
self.api = petstore_api.apis.pet_api.PetApi()
def tearDown(self):
pass
def test_add_pet(self):
"""
Test case for add_pet
Add a new pet to the store
"""
pass
def test_delete_pet(self):
"""
Test case for delete_pet
Deletes a pet
"""
pass
def test_find_pets_by_status(self):
"""
Test case for find_pets_by_status
Finds Pets by status
"""
pass
def test_find_pets_by_tags(self):
"""
Test case for find_pets_by_tags
Finds Pets by tags
"""
pass
def test_get_pet_by_id(self):
"""
Test case for get_pet_by_id
Find pet by ID
"""
pass
def test_update_pet(self):
"""
Test case for update_pet
Update an existing pet
"""
pass
def test_update_pet_with_form(self):
"""
Test case for update_pet_with_form
Updates a pet in the store with form data
"""
pass
def test_upload_file(self):
"""
Test case for upload_file
uploads an image
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.read_only_first import ReadOnlyFirst
class TestReadOnlyFirst(unittest.TestCase):
""" ReadOnlyFirst unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testReadOnlyFirst(self):
"""
Test ReadOnlyFirst
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.read_only_first.ReadOnlyFirst()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.special_model_name import SpecialModelName
class TestSpecialModelName(unittest.TestCase):
""" SpecialModelName unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testSpecialModelName(self):
"""
Test SpecialModelName
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.special_model_name.SpecialModelName()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,68 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.apis.store_api import StoreApi
class TestStoreApi(unittest.TestCase):
""" StoreApi unit test stubs """
def setUp(self):
self.api = petstore_api.apis.store_api.StoreApi()
def tearDown(self):
pass
def test_delete_order(self):
"""
Test case for delete_order
Delete purchase order by ID
"""
pass
def test_get_inventory(self):
"""
Test case for get_inventory
Returns pet inventories by status
"""
pass
def test_get_order_by_id(self):
"""
Test case for get_order_by_id
Find purchase order by ID
"""
pass
def test_place_order(self):
"""
Test case for place_order
Place an order for a pet
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.tag import Tag
class TestTag(unittest.TestCase):
""" Tag unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testTag(self):
"""
Test Tag
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.tag.Tag()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,44 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.models.user import User
class TestUser(unittest.TestCase):
""" User unit test stubs """
def setUp(self):
pass
def tearDown(self):
pass
def testUser(self):
"""
Test User
"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.user.User()
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,100 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.rest import ApiException
from petstore_api.apis.user_api import UserApi
class TestUserApi(unittest.TestCase):
""" UserApi unit test stubs """
def setUp(self):
self.api = petstore_api.apis.user_api.UserApi()
def tearDown(self):
pass
def test_create_user(self):
"""
Test case for create_user
Create user
"""
pass
def test_create_users_with_array_input(self):
"""
Test case for create_users_with_array_input
Creates list of users with given input array
"""
pass
def test_create_users_with_list_input(self):
"""
Test case for create_users_with_list_input
Creates list of users with given input array
"""
pass
def test_delete_user(self):
"""
Test case for delete_user
Delete user
"""
pass
def test_get_user_by_name(self):
"""
Test case for get_user_by_name
Get user by user name
"""
pass
def test_login_user(self):
"""
Test case for login_user
Logs user into the system
"""
pass
def test_logout_user(self):
"""
Test case for logout_user
Logs out current logged in user session
"""
pass
def test_update_user(self):
"""
Test case for update_user
Updated user
"""
pass
if __name__ == '__main__':
unittest.main()