[python-client] Modify python templates to resolve linting errors (#6839)

The linting results for the generated samples are as follows
where the first number is the BEFORE and the second is AFTER.

pyclient            7714 vs. 120
pyclient3           7717 vs. 120
pyclient3-asyncio   7584 vs. 120
pyclient-tornado    7633 vs. 120
pyclient3-tornado   7633 vs. 120

For the complete details please see the following gist.
https://gist.github.com/kenjones-cisco/2eb69a7e8db75e9fd53789f01570d9f2

Enforces linting for python clients by running flake8 for the generated
python client.
This commit is contained in:
Kenny Jones
2017-11-01 12:47:14 -04:00
committed by wing328
parent eba4affbb4
commit 74f70a1924
339 changed files with 9992 additions and 11581 deletions

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.additional_properties_class import AdditionalPropertiesClass
class TestAdditionalPropertiesClass(unittest.TestCase):
""" AdditionalPropertiesClass unit test stubs """
"""AdditionalPropertiesClass unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestAdditionalPropertiesClass(unittest.TestCase):
pass
def testAdditionalPropertiesClass(self):
"""
Test AdditionalPropertiesClass
"""
"""Test AdditionalPropertiesClass"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.additional_properties_class.AdditionalPropertiesClass()
# model = petstore_api.models.additional_properties_class.AdditionalPropertiesClass() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.animal import Animal
class TestAnimal(unittest.TestCase):
""" Animal unit test stubs """
"""Animal unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestAnimal(unittest.TestCase):
pass
def testAnimal(self):
"""
Test Animal
"""
"""Test Animal"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.animal.Animal()
# model = petstore_api.models.animal.Animal() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.models.animal_farm import AnimalFarm # noqa: E501
from petstore_api.rest import ApiException
from petstore_api.models.animal_farm import AnimalFarm
class TestAnimalFarm(unittest.TestCase):
""" AnimalFarm unit test stubs """
"""AnimalFarm unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestAnimalFarm(unittest.TestCase):
pass
def testAnimalFarm(self):
"""
Test AnimalFarm
"""
"""Test AnimalFarm"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.animal_farm.AnimalFarm()
# model = petstore_api.models.animal_farm.AnimalFarm() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,29 +13,26 @@
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.api.another_fake_api import AnotherFakeApi # noqa: E501
from petstore_api.rest import ApiException
from petstore_api.apis.another_fake_api import AnotherFakeApi
class TestAnotherFakeApi(unittest.TestCase):
""" AnotherFakeApi unit test stubs """
"""AnotherFakeApi unit test stubs"""
def setUp(self):
self.api = petstore_api.apis.another_fake_api.AnotherFakeApi()
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
"""Test case for test_special_tags
To test special tags
To test special tags # noqa: E501
"""
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.api_response import ApiResponse
class TestApiResponse(unittest.TestCase):
""" ApiResponse unit test stubs """
"""ApiResponse unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestApiResponse(unittest.TestCase):
pass
def testApiResponse(self):
"""
Test ApiResponse
"""
"""Test ApiResponse"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.api_response.ApiResponse()
# model = petstore_api.models.api_response.ApiResponse() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly
class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
""" ArrayOfArrayOfNumberOnly unit test stubs """
"""ArrayOfArrayOfNumberOnly unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestArrayOfArrayOfNumberOnly(unittest.TestCase):
pass
def testArrayOfArrayOfNumberOnly(self):
"""
Test ArrayOfArrayOfNumberOnly
"""
"""Test ArrayOfArrayOfNumberOnly"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.array_of_array_of_number_only.ArrayOfArrayOfNumberOnly()
# model = petstore_api.models.array_of_array_of_number_only.ArrayOfArrayOfNumberOnly() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.array_of_number_only import ArrayOfNumberOnly
class TestArrayOfNumberOnly(unittest.TestCase):
""" ArrayOfNumberOnly unit test stubs """
"""ArrayOfNumberOnly unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestArrayOfNumberOnly(unittest.TestCase):
pass
def testArrayOfNumberOnly(self):
"""
Test ArrayOfNumberOnly
"""
"""Test ArrayOfNumberOnly"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.array_of_number_only.ArrayOfNumberOnly()
# model = petstore_api.models.array_of_number_only.ArrayOfNumberOnly() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.array_test import ArrayTest
class TestArrayTest(unittest.TestCase):
""" ArrayTest unit test stubs """
"""ArrayTest unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestArrayTest(unittest.TestCase):
pass
def testArrayTest(self):
"""
Test ArrayTest
"""
"""Test ArrayTest"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.array_test.ArrayTest()
# model = petstore_api.models.array_test.ArrayTest() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.capitalization import Capitalization
class TestCapitalization(unittest.TestCase):
""" Capitalization unit test stubs """
"""Capitalization unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestCapitalization(unittest.TestCase):
pass
def testCapitalization(self):
"""
Test Capitalization
"""
"""Test Capitalization"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.capitalization.Capitalization()
# model = petstore_api.models.capitalization.Capitalization() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.cat import Cat
class TestCat(unittest.TestCase):
""" Cat unit test stubs """
"""Cat unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestCat(unittest.TestCase):
pass
def testCat(self):
"""
Test Cat
"""
"""Test Cat"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.cat.Cat()
# model = petstore_api.models.cat.Cat() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.category import Category
class TestCategory(unittest.TestCase):
""" Category unit test stubs """
"""Category unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestCategory(unittest.TestCase):
pass
def testCategory(self):
"""
Test Category
"""
"""Test Category"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.category.Category()
# model = petstore_api.models.category.Category() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.class_model import ClassModel
class TestClassModel(unittest.TestCase):
""" ClassModel unit test stubs """
"""ClassModel unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestClassModel(unittest.TestCase):
pass
def testClassModel(self):
"""
Test ClassModel
"""
"""Test ClassModel"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.class_model.ClassModel()
# model = petstore_api.models.class_model.ClassModel() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.client import Client
class TestClient(unittest.TestCase):
""" Client unit test stubs """
"""Client unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestClient(unittest.TestCase):
pass
def testClient(self):
"""
Test Client
"""
"""Test Client"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.client.Client()
# model = petstore_api.models.client.Client() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.dog import Dog
class TestDog(unittest.TestCase):
""" Dog unit test stubs """
"""Dog unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestDog(unittest.TestCase):
pass
def testDog(self):
"""
Test Dog
"""
"""Test Dog"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.dog.Dog()
# model = petstore_api.models.dog.Dog() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.enum_arrays import EnumArrays
class TestEnumArrays(unittest.TestCase):
""" EnumArrays unit test stubs """
"""EnumArrays unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestEnumArrays(unittest.TestCase):
pass
def testEnumArrays(self):
"""
Test EnumArrays
"""
"""Test EnumArrays"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.enum_arrays.EnumArrays()
# model = petstore_api.models.enum_arrays.EnumArrays() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.enum_class import EnumClass
class TestEnumClass(unittest.TestCase):
""" EnumClass unit test stubs """
"""EnumClass unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestEnumClass(unittest.TestCase):
pass
def testEnumClass(self):
"""
Test EnumClass
"""
"""Test EnumClass"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.enum_class.EnumClass()
# model = petstore_api.models.enum_class.EnumClass() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.enum_test import EnumTest
class TestEnumTest(unittest.TestCase):
""" EnumTest unit test stubs """
"""EnumTest unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestEnumTest(unittest.TestCase):
pass
def testEnumTest(self):
"""
Test EnumTest
"""
"""Test EnumTest"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.enum_test.EnumTest()
# model = petstore_api.models.enum_test.EnumTest() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,85 +13,78 @@
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.api.fake_api import FakeApi # noqa: E501
from petstore_api.rest import ApiException
from petstore_api.apis.fake_api import FakeApi
class TestFakeApi(unittest.TestCase):
""" FakeApi unit test stubs """
"""FakeApi unit test stubs"""
def setUp(self):
self.api = petstore_api.apis.fake_api.FakeApi()
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
"""Test case for fake_outer_boolean_serialize
"""
pass
def test_fake_outer_composite_serialize(self):
"""
Test case for fake_outer_composite_serialize
"""Test case for fake_outer_composite_serialize
"""
pass
def test_fake_outer_number_serialize(self):
"""
Test case for fake_outer_number_serialize
"""Test case for fake_outer_number_serialize
"""
pass
def test_fake_outer_string_serialize(self):
"""
Test case for fake_outer_string_serialize
"""Test case for fake_outer_string_serialize
"""
pass
def test_test_client_model(self):
"""
Test case for test_client_model
"""Test case for test_client_model
To test \"client\" model
To test \"client\" model # noqa: E501
"""
pass
def test_test_endpoint_parameters(self):
"""
Test case for test_endpoint_parameters
"""Test case for test_endpoint_parameters
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 # noqa: E501
"""
pass
def test_test_enum_parameters(self):
"""
Test case for test_enum_parameters
"""Test case for test_enum_parameters
To 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 case for test_json_form_data
test json serialization of form data
test json serialization of form data # noqa: E501
"""
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,29 +13,26 @@
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.api.fake_classname_tags_123_api import FakeClassnameTags123Api # noqa: E501
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 """
"""FakeClassnameTags123Api unit test stubs"""
def setUp(self):
self.api = petstore_api.apis.fake_classname_tags_123_api.FakeClassnameTags123Api()
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
"""Test case for test_classname
To test class name in snake case
To test class name in snake case # noqa: E501
"""
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.format_test import FormatTest
class TestFormatTest(unittest.TestCase):
""" FormatTest unit test stubs """
"""FormatTest unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestFormatTest(unittest.TestCase):
pass
def testFormatTest(self):
"""
Test FormatTest
"""
"""Test FormatTest"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.format_test.FormatTest()
# model = petstore_api.models.format_test.FormatTest() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.has_only_read_only import HasOnlyReadOnly
class TestHasOnlyReadOnly(unittest.TestCase):
""" HasOnlyReadOnly unit test stubs """
"""HasOnlyReadOnly unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestHasOnlyReadOnly(unittest.TestCase):
pass
def testHasOnlyReadOnly(self):
"""
Test HasOnlyReadOnly
"""
"""Test HasOnlyReadOnly"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.has_only_read_only.HasOnlyReadOnly()
# model = petstore_api.models.has_only_read_only.HasOnlyReadOnly() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.list import List
class TestList(unittest.TestCase):
""" List unit test stubs """
"""List unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestList(unittest.TestCase):
pass
def testList(self):
"""
Test List
"""
"""Test List"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.list.List()
# model = petstore_api.models.list.List() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.map_test import MapTest
class TestMapTest(unittest.TestCase):
""" MapTest unit test stubs """
"""MapTest unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestMapTest(unittest.TestCase):
pass
def testMapTest(self):
"""
Test MapTest
"""
"""Test MapTest"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.map_test.MapTest()
# model = petstore_api.models.map_test.MapTest() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.mixed_properties_and_additional_properties_class import MixedPropertiesAndAdditionalPropertiesClass
class TestMixedPropertiesAndAdditionalPropertiesClass(unittest.TestCase):
""" MixedPropertiesAndAdditionalPropertiesClass unit test stubs """
"""MixedPropertiesAndAdditionalPropertiesClass unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestMixedPropertiesAndAdditionalPropertiesClass(unittest.TestCase):
pass
def testMixedPropertiesAndAdditionalPropertiesClass(self):
"""
Test MixedPropertiesAndAdditionalPropertiesClass
"""
"""Test MixedPropertiesAndAdditionalPropertiesClass"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.mixed_properties_and_additional_properties_class.MixedPropertiesAndAdditionalPropertiesClass()
# model = petstore_api.models.mixed_properties_and_additional_properties_class.MixedPropertiesAndAdditionalPropertiesClass() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.models.model_200_response import Model200Response # noqa: E501
from petstore_api.rest import ApiException
from petstore_api.models.model_200_response import Model200Response
class TestModel200Response(unittest.TestCase):
""" Model200Response unit test stubs """
"""Model200Response unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestModel200Response(unittest.TestCase):
pass
def testModel200Response(self):
"""
Test Model200Response
"""
"""Test Model200Response"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.model_200_response.Model200Response()
# model = petstore_api.models.model_200_response.Model200Response() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.model_return import ModelReturn
class TestModelReturn(unittest.TestCase):
""" ModelReturn unit test stubs """
"""ModelReturn unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestModelReturn(unittest.TestCase):
pass
def testModelReturn(self):
"""
Test ModelReturn
"""
"""Test ModelReturn"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.model_return.ModelReturn()
# model = petstore_api.models.model_return.ModelReturn() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.name import Name
class TestName(unittest.TestCase):
""" Name unit test stubs """
"""Name unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestName(unittest.TestCase):
pass
def testName(self):
"""
Test Name
"""
"""Test Name"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.name.Name()
# model = petstore_api.models.name.Name() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.number_only import NumberOnly
class TestNumberOnly(unittest.TestCase):
""" NumberOnly unit test stubs """
"""NumberOnly unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestNumberOnly(unittest.TestCase):
pass
def testNumberOnly(self):
"""
Test NumberOnly
"""
"""Test NumberOnly"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.number_only.NumberOnly()
# model = petstore_api.models.number_only.NumberOnly() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.order import Order
class TestOrder(unittest.TestCase):
""" Order unit test stubs """
"""Order unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestOrder(unittest.TestCase):
pass
def testOrder(self):
"""
Test Order
"""
"""Test Order"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.order.Order()
# model = petstore_api.models.order.Order() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.models.outer_boolean import OuterBoolean # noqa: E501
from petstore_api.rest import ApiException
from petstore_api.models.outer_boolean import OuterBoolean
class TestOuterBoolean(unittest.TestCase):
""" OuterBoolean unit test stubs """
"""OuterBoolean unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestOuterBoolean(unittest.TestCase):
pass
def testOuterBoolean(self):
"""
Test OuterBoolean
"""
"""Test OuterBoolean"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.outer_boolean.OuterBoolean()
# model = petstore_api.models.outer_boolean.OuterBoolean() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.outer_composite import OuterComposite
class TestOuterComposite(unittest.TestCase):
""" OuterComposite unit test stubs """
"""OuterComposite unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestOuterComposite(unittest.TestCase):
pass
def testOuterComposite(self):
"""
Test OuterComposite
"""
"""Test OuterComposite"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.outer_composite.OuterComposite()
# model = petstore_api.models.outer_composite.OuterComposite() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.outer_enum import OuterEnum
class TestOuterEnum(unittest.TestCase):
""" OuterEnum unit test stubs """
"""OuterEnum unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestOuterEnum(unittest.TestCase):
pass
def testOuterEnum(self):
"""
Test OuterEnum
"""
"""Test OuterEnum"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.outer_enum.OuterEnum()
# model = petstore_api.models.outer_enum.OuterEnum() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.models.outer_number import OuterNumber # noqa: E501
from petstore_api.rest import ApiException
from petstore_api.models.outer_number import OuterNumber
class TestOuterNumber(unittest.TestCase):
""" OuterNumber unit test stubs """
"""OuterNumber unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestOuterNumber(unittest.TestCase):
pass
def testOuterNumber(self):
"""
Test OuterNumber
"""
"""Test OuterNumber"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.outer_number.OuterNumber()
# model = petstore_api.models.outer_number.OuterNumber() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.models.outer_string import OuterString # noqa: E501
from petstore_api.rest import ApiException
from petstore_api.models.outer_string import OuterString
class TestOuterString(unittest.TestCase):
""" OuterString unit test stubs """
"""OuterString unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestOuterString(unittest.TestCase):
pass
def testOuterString(self):
"""
Test OuterString
"""
"""Test OuterString"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.outer_string.OuterString()
# model = petstore_api.models.outer_string.OuterString() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.pet import Pet
class TestPet(unittest.TestCase):
""" Pet unit test stubs """
"""Pet unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestPet(unittest.TestCase):
pass
def testPet(self):
"""
Test Pet
"""
"""Test Pet"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.pet.Pet()
# model = petstore_api.models.pet.Pet() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,85 +13,75 @@
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.api.pet_api import PetApi # noqa: E501
from petstore_api.rest import ApiException
from petstore_api.apis.pet_api import PetApi
class TestPetApi(unittest.TestCase):
""" PetApi unit test stubs """
"""PetApi unit test stubs"""
def setUp(self):
self.api = petstore_api.apis.pet_api.PetApi()
self.api = petstore_api.api.pet_api.PetApi() # noqa: E501
def tearDown(self):
pass
def test_add_pet(self):
"""
Test case for add_pet
"""Test case for add_pet
Add a new pet to the store
Add a new pet to the store # noqa: E501
"""
pass
def test_delete_pet(self):
"""
Test case for delete_pet
"""Test case for delete_pet
Deletes a pet
Deletes a pet # noqa: E501
"""
pass
def test_find_pets_by_status(self):
"""
Test case for find_pets_by_status
"""Test case for find_pets_by_status
Finds Pets by status
Finds Pets by status # noqa: E501
"""
pass
def test_find_pets_by_tags(self):
"""
Test case for find_pets_by_tags
"""Test case for find_pets_by_tags
Finds Pets by tags
Finds Pets by tags # noqa: E501
"""
pass
def test_get_pet_by_id(self):
"""
Test case for get_pet_by_id
"""Test case for get_pet_by_id
Find pet by ID
Find pet by ID # noqa: E501
"""
pass
def test_update_pet(self):
"""
Test case for update_pet
"""Test case for update_pet
Update an existing pet
Update an existing pet # noqa: E501
"""
pass
def test_update_pet_with_form(self):
"""
Test case for update_pet_with_form
"""Test case for update_pet_with_form
Updates a pet in the store with form data
Updates a pet in the store with form data # noqa: E501
"""
pass
def test_upload_file(self):
"""
Test case for upload_file
"""Test case for upload_file
uploads an image
uploads an image # noqa: E501
"""
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.read_only_first import ReadOnlyFirst
class TestReadOnlyFirst(unittest.TestCase):
""" ReadOnlyFirst unit test stubs """
"""ReadOnlyFirst unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestReadOnlyFirst(unittest.TestCase):
pass
def testReadOnlyFirst(self):
"""
Test ReadOnlyFirst
"""
"""Test ReadOnlyFirst"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.read_only_first.ReadOnlyFirst()
# model = petstore_api.models.read_only_first.ReadOnlyFirst() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.special_model_name import SpecialModelName
class TestSpecialModelName(unittest.TestCase):
""" SpecialModelName unit test stubs """
"""SpecialModelName unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestSpecialModelName(unittest.TestCase):
pass
def testSpecialModelName(self):
"""
Test SpecialModelName
"""
"""Test SpecialModelName"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.special_model_name.SpecialModelName()
# model = petstore_api.models.special_model_name.SpecialModelName() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,53 +13,47 @@
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.api.store_api import StoreApi # noqa: E501
from petstore_api.rest import ApiException
from petstore_api.apis.store_api import StoreApi
class TestStoreApi(unittest.TestCase):
""" StoreApi unit test stubs """
"""StoreApi unit test stubs"""
def setUp(self):
self.api = petstore_api.apis.store_api.StoreApi()
self.api = petstore_api.api.store_api.StoreApi() # noqa: E501
def tearDown(self):
pass
def test_delete_order(self):
"""
Test case for delete_order
"""Test case for delete_order
Delete purchase order by ID
Delete purchase order by ID # noqa: E501
"""
pass
def test_get_inventory(self):
"""
Test case for get_inventory
"""Test case for get_inventory
Returns pet inventories by status
Returns pet inventories by status # noqa: E501
"""
pass
def test_get_order_by_id(self):
"""
Test case for get_order_by_id
"""Test case for get_order_by_id
Find purchase order by ID
Find purchase order by ID # noqa: E501
"""
pass
def test_place_order(self):
"""
Test case for place_order
"""Test case for place_order
Place an order for a pet
Place an order for a pet # noqa: E501
"""
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.tag import Tag
class TestTag(unittest.TestCase):
""" Tag unit test stubs """
"""Tag unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestTag(unittest.TestCase):
pass
def testTag(self):
"""
Test Tag
"""
"""Test Tag"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.tag.Tag()
# model = petstore_api.models.tag.Tag() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,17 +13,15 @@
from __future__ import absolute_import
import os
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.models.user import User
class TestUser(unittest.TestCase):
""" User unit test stubs """
"""User unit test stubs"""
def setUp(self):
pass
@@ -32,11 +30,9 @@ class TestUser(unittest.TestCase):
pass
def testUser(self):
"""
Test User
"""
"""Test User"""
# FIXME: construct object with mandatory attributes with example values
#model = petstore_api.models.user.User()
# model = petstore_api.models.user.User() # noqa: E501
pass

View File

@@ -3,7 +3,7 @@
"""
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: \" \\
This spec 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
Contact: apiteam@swagger.io
@@ -13,85 +13,75 @@
from __future__ import absolute_import
import os
import sys
import unittest
import petstore_api
from petstore_api.api.user_api import UserApi # noqa: E501
from petstore_api.rest import ApiException
from petstore_api.apis.user_api import UserApi
class TestUserApi(unittest.TestCase):
""" UserApi unit test stubs """
"""UserApi unit test stubs"""
def setUp(self):
self.api = petstore_api.apis.user_api.UserApi()
self.api = petstore_api.api.user_api.UserApi() # noqa: E501
def tearDown(self):
pass
def test_create_user(self):
"""
Test case for create_user
"""Test case for create_user
Create user
Create user # noqa: E501
"""
pass
def test_create_users_with_array_input(self):
"""
Test case for create_users_with_array_input
"""Test case for create_users_with_array_input
Creates list of users with given input array
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
"""Test case for create_users_with_list_input
Creates list of users with given input array
Creates list of users with given input array # noqa: E501
"""
pass
def test_delete_user(self):
"""
Test case for delete_user
"""Test case for delete_user
Delete user
Delete user # noqa: E501
"""
pass
def test_get_user_by_name(self):
"""
Test case for get_user_by_name
"""Test case for get_user_by_name
Get user by user name
Get user by user name # noqa: E501
"""
pass
def test_login_user(self):
"""
Test case for login_user
"""Test case for login_user
Logs user into the system
Logs user into the system # noqa: E501
"""
pass
def test_logout_user(self):
"""
Test case for logout_user
"""Test case for logout_user
Logs out current logged in user session
Logs out current logged in user session # noqa: E501
"""
pass
def test_update_user(self):
"""
Test case for update_user
"""Test case for update_user
Updated user
Updated user # noqa: E501
"""
pass