[Python] Adds new client generator, python-experimental (#3244)

* Adds python-experimental generator

* Adds python-experimental samples folder which uses its own v2 spec

* Adds enusre-up-to-date updates

* Removes samples/client/petstore/perl/t/AnotherFakeApiTest.t

* Removes comment line from python-experimental generator

* Reverts perl docs file

* Updates perl sample client

* Adds python-experimental to pom.xml

* Copies the python test foldeers tests and testfiles into python-experimental

* Copies python test folder into python-experimental

* Moves python testing from Travis (samples pom.xml profile) to Circlci (samples.circleci pom.xml profile)

* Adds python-experimental pom.xml

* Adds python-experimental makefile and .sh files

* Chenges python-experimental to use gitignored venv rather than .venv which is not ignored when testing

* Adds dev-requiremnts.txt and removes .travis.yml from python-experimental so CI tests will pass

* Moves python-experimental from CicleCI to Travis to get support for multiple python environments

* Updates generator java comment so CI tests will run over again
This commit is contained in:
Justin Black
2019-07-06 07:43:29 -07:00
committed by William Cheng
parent 78551d0180
commit 109808e60d
199 changed files with 22471 additions and 0 deletions

View File

@@ -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
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.additional_properties_any_type import AdditionalPropertiesAnyType # noqa: E501
from petstore_api.rest import ApiException
class TestAdditionalPropertiesAnyType(unittest.TestCase):
"""AdditionalPropertiesAnyType unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAdditionalPropertiesAnyType(self):
"""Test AdditionalPropertiesAnyType"""
# FIXME: construct object with mandatory attributes with example values
# model = petstore_api.models.additional_properties_any_type.AdditionalPropertiesAnyType() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.additional_properties_array import AdditionalPropertiesArray # noqa: E501
from petstore_api.rest import ApiException
class TestAdditionalPropertiesArray(unittest.TestCase):
"""AdditionalPropertiesArray unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAdditionalPropertiesArray(self):
"""Test AdditionalPropertiesArray"""
# FIXME: construct object with mandatory attributes with example values
# model = petstore_api.models.additional_properties_array.AdditionalPropertiesArray() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.additional_properties_boolean import AdditionalPropertiesBoolean # noqa: E501
from petstore_api.rest import ApiException
class TestAdditionalPropertiesBoolean(unittest.TestCase):
"""AdditionalPropertiesBoolean unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAdditionalPropertiesBoolean(self):
"""Test AdditionalPropertiesBoolean"""
# FIXME: construct object with mandatory attributes with example values
# model = petstore_api.models.additional_properties_boolean.AdditionalPropertiesBoolean() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.additional_properties_class import AdditionalPropertiesClass # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.additional_properties_integer import AdditionalPropertiesInteger # noqa: E501
from petstore_api.rest import ApiException
class TestAdditionalPropertiesInteger(unittest.TestCase):
"""AdditionalPropertiesInteger unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAdditionalPropertiesInteger(self):
"""Test AdditionalPropertiesInteger"""
# FIXME: construct object with mandatory attributes with example values
# model = petstore_api.models.additional_properties_integer.AdditionalPropertiesInteger() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.additional_properties_number import AdditionalPropertiesNumber # noqa: E501
from petstore_api.rest import ApiException
class TestAdditionalPropertiesNumber(unittest.TestCase):
"""AdditionalPropertiesNumber unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAdditionalPropertiesNumber(self):
"""Test AdditionalPropertiesNumber"""
# FIXME: construct object with mandatory attributes with example values
# model = petstore_api.models.additional_properties_number.AdditionalPropertiesNumber() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.additional_properties_object import AdditionalPropertiesObject # noqa: E501
from petstore_api.rest import ApiException
class TestAdditionalPropertiesObject(unittest.TestCase):
"""AdditionalPropertiesObject unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAdditionalPropertiesObject(self):
"""Test AdditionalPropertiesObject"""
# FIXME: construct object with mandatory attributes with example values
# model = petstore_api.models.additional_properties_object.AdditionalPropertiesObject() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.additional_properties_string import AdditionalPropertiesString # noqa: E501
from petstore_api.rest import ApiException
class TestAdditionalPropertiesString(unittest.TestCase):
"""AdditionalPropertiesString unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testAdditionalPropertiesString(self):
"""Test AdditionalPropertiesString"""
# FIXME: construct object with mandatory attributes with example values
# model = petstore_api.models.additional_properties_string.AdditionalPropertiesString() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.animal import Animal # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,40 @@
# 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.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
def tearDown(self):
pass
def test_test_special_tags(self):
"""Test case for test_special_tags
To test special tags # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.api_response import ApiResponse # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.array_of_number_only import ArrayOfNumberOnly # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.array_test import ArrayTest # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.capitalization import Capitalization # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.cat import Cat # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.cat_all_of import CatAllOf # noqa: E501
from petstore_api.rest import ApiException
class TestCatAllOf(unittest.TestCase):
"""CatAllOf unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testCatAllOf(self):
"""Test CatAllOf"""
# FIXME: construct object with mandatory attributes with example values
# model = petstore_api.models.cat_all_of.CatAllOf() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.category import Category # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.class_model import ClassModel # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.client import Client # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.dog import Dog # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.dog_all_of import DogAllOf # noqa: E501
from petstore_api.rest import ApiException
class TestDogAllOf(unittest.TestCase):
"""DogAllOf unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testDogAllOf(self):
"""Test DogAllOf"""
# FIXME: construct object with mandatory attributes with example values
# model = petstore_api.models.dog_all_of.DogAllOf() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.enum_arrays import EnumArrays # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.enum_class import EnumClass # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.enum_test import EnumTest # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,98 @@
# 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.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
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_body_with_query_params(self):
"""Test case for test_body_with_query_params
"""
pass
def test_test_client_model(self):
"""Test case for test_client_model
To test \"client\" model # noqa: E501
"""
pass
def test_test_endpoint_parameters(self):
"""Test case for test_endpoint_parameters
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # noqa: E501
"""
pass
def test_test_enum_parameters(self):
"""Test case for test_enum_parameters
To test enum parameters # noqa: E501
"""
pass
def test_test_inline_additional_properties(self):
"""Test case for test_inline_additional_properties
test inline additionalProperties # noqa: E501
"""
pass
def test_test_json_form_data(self):
"""Test case for test_json_form_data
test json serialization of form data # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,40 @@
# 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.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
def tearDown(self):
pass
def test_test_classname(self):
"""Test case for test_classname
To test class name in snake case # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,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
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.file import File # noqa: E501
from petstore_api.rest import ApiException
class TestFile(unittest.TestCase):
"""File unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testFile(self):
"""Test File"""
# FIXME: construct object with mandatory attributes with example values
# model = petstore_api.models.file.File() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.file_schema_test_class import FileSchemaTestClass # noqa: E501
from petstore_api.rest import ApiException
class TestFileSchemaTestClass(unittest.TestCase):
"""FileSchemaTestClass unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
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
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.format_test import FormatTest # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.has_only_read_only import HasOnlyReadOnly # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.list import List # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.map_test import MapTest # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.model200_response import Model200Response # noqa: E501
from petstore_api.rest import ApiException
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.model200_response.Model200Response() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.model_return import ModelReturn # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.name import Name # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.number_only import NumberOnly # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.order import Order # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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_composite import OuterComposite # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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 import OuterEnum # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.pet import Pet # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,89 @@
# 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.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
def tearDown(self):
pass
def test_add_pet(self):
"""Test case for add_pet
Add a new pet to the store # noqa: E501
"""
pass
def test_delete_pet(self):
"""Test case for delete_pet
Deletes a pet # noqa: E501
"""
pass
def test_find_pets_by_status(self):
"""Test case for find_pets_by_status
Finds Pets by status # noqa: E501
"""
pass
def test_find_pets_by_tags(self):
"""Test case for find_pets_by_tags
Finds Pets by tags # noqa: E501
"""
pass
def test_get_pet_by_id(self):
"""Test case for get_pet_by_id
Find pet by ID # noqa: E501
"""
pass
def test_update_pet(self):
"""Test case for update_pet
Update an existing pet # noqa: E501
"""
pass
def test_update_pet_with_form(self):
"""Test case for update_pet_with_form
Updates a pet in the store with form data # noqa: E501
"""
pass
def test_upload_file(self):
"""Test case for upload_file
uploads an image # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.read_only_first import ReadOnlyFirst # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.special_model_name import SpecialModelName # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,61 @@
# coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # 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.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
def tearDown(self):
pass
def test_delete_order(self):
"""Test case for delete_order
Delete purchase order by ID # noqa: E501
"""
pass
def test_get_inventory(self):
"""Test case for get_inventory
Returns pet inventories by status # noqa: E501
"""
pass
def test_get_order_by_id(self):
"""Test case for get_order_by_id
Find purchase order by ID # noqa: E501
"""
pass
def test_place_order(self):
"""Test case for place_order
Place an order for a pet # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.tag import Tag # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,49 @@
# 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.type_holder_default import TypeHolderDefault # noqa: E501
from petstore_api.rest import ApiException
class TestTypeHolderDefault(unittest.TestCase):
"""TypeHolderDefault unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testTypeHolderDefault(self):
"""Test TypeHolderDefault"""
# required_vars are set to None now until swagger-parser/swagger-core fixes
# https://github.com/swagger-api/swagger-parser/issues/971
required_vars = ['number_item', 'integer_item', 'array_item']
sample_values = [5.67, 4, [-5, 2, -6]]
assigned_variables = {}
for index, required_var in enumerate(required_vars):
with self.assertRaises(ValueError):
model = TypeHolderDefault(**assigned_variables)
assigned_variables[required_var] = sample_values[index]
# assigned_variables is fully set, all required variables passed in
model = TypeHolderDefault(**assigned_variables)
self.assertEqual(model.string_item, 'what')
self.assertEqual(model.bool_item, True)
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.type_holder_example import TypeHolderExample # noqa: E501
from petstore_api.rest import ApiException
class TestTypeHolderExample(unittest.TestCase):
"""TypeHolderExample unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testTypeHolderExample(self):
"""Test TypeHolderExample"""
# FIXME: construct object with mandatory attributes with example values
# model = petstore_api.models.type_holder_example.TypeHolderExample() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.user import User # noqa: E501
from petstore_api.rest import ApiException
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() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,89 @@
# 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.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
def tearDown(self):
pass
def test_create_user(self):
"""Test case for create_user
Create user # noqa: E501
"""
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 # noqa: E501
"""
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 # noqa: E501
"""
pass
def test_delete_user(self):
"""Test case for delete_user
Delete user # noqa: E501
"""
pass
def test_get_user_by_name(self):
"""Test case for get_user_by_name
Get user by user name # noqa: E501
"""
pass
def test_login_user(self):
"""Test case for login_user
Logs user into the system # noqa: E501
"""
pass
def test_logout_user(self):
"""Test case for logout_user
Logs out current logged in user session # noqa: E501
"""
pass
def test_update_user(self):
"""Test case for update_user
Updated user # noqa: E501
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -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
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.xml_item import XmlItem # noqa: E501
from petstore_api.rest import ApiException
class TestXmlItem(unittest.TestCase):
"""XmlItem unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testXmlItem(self):
"""Test XmlItem"""
# FIXME: construct object with mandatory attributes with example values
# model = petstore_api.models.xml_item.XmlItem() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()