Update python test (#426)

* update python test folders

* update python template

* update python samples

* fix python comment too long

* update ruby test case
This commit is contained in:
William Cheng 2018-05-12 09:54:19 +08:00 committed by GitHub
parent 4b7a583b33
commit 2ed3d8cc86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
279 changed files with 515 additions and 2144 deletions

View File

@ -14,7 +14,8 @@ from {{packageName}}.api_client import ApiClient
{{#operations}} {{#operations}}
class {{classname}}(object): class {{classname}}(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -30,7 +30,8 @@ class ApiClient(object):
the methods and models for each application are generated from the OpenAPI the methods and models for each application are generated from the OpenAPI
templates. templates.
NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
:param configuration: .Configuration object for this client :param configuration: .Configuration object for this client

View File

@ -29,7 +29,7 @@ class TypeWithDefault(type):
class Configuration(six.with_metaclass(TypeWithDefault, object)): class Configuration(six.with_metaclass(TypeWithDefault, object)):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.

View File

@ -15,7 +15,8 @@ import six
{{#models}} {{#models}}
{{#model}} {{#model}}
class {{classname}}(object): class {{classname}}(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
"""{{#allowableValues}} """{{#allowableValues}}

View File

@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient
class AnotherFakeApi(object): class AnotherFakeApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient
class FakeApi(object): class FakeApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient
class FakeClassnameTags123Api(object): class FakeClassnameTags123Api(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient
class PetApi(object): class PetApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient
class StoreApi(object): class StoreApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient
class UserApi(object): class UserApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -35,7 +35,8 @@ class ApiClient(object):
the methods and models for each application are generated from the OpenAPI the methods and models for each application are generated from the OpenAPI
templates. templates.
NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
:param configuration: .Configuration object for this client :param configuration: .Configuration object for this client

View File

@ -37,7 +37,7 @@ class TypeWithDefault(type):
class Configuration(six.with_metaclass(TypeWithDefault, object)): class Configuration(six.with_metaclass(TypeWithDefault, object)):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.

View File

@ -17,7 +17,8 @@ import six
class AdditionalPropertiesClass(object): class AdditionalPropertiesClass(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class Animal(object): class Animal(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -19,7 +19,8 @@ from petstore_api.models.animal import Animal # noqa: F401,E501
class AnimalFarm(object): class AnimalFarm(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class ApiResponse(object): class ApiResponse(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class ArrayOfArrayOfNumberOnly(object): class ArrayOfArrayOfNumberOnly(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class ArrayOfNumberOnly(object): class ArrayOfNumberOnly(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -19,7 +19,8 @@ from petstore_api.models.read_only_first import ReadOnlyFirst # noqa: F401,E501
class ArrayTest(object): class ArrayTest(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class Capitalization(object): class Capitalization(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -19,7 +19,8 @@ from petstore_api.models.animal import Animal # noqa: F401,E501
class Cat(object): class Cat(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class Category(object): class Category(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class ClassModel(object): class ClassModel(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class Client(object): class Client(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -19,7 +19,8 @@ from petstore_api.models.animal import Animal # noqa: F401,E501
class Dog(object): class Dog(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class EnumArrays(object): class EnumArrays(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class EnumClass(object): class EnumClass(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -19,7 +19,8 @@ from petstore_api.models.outer_enum import OuterEnum # noqa: F401,E501
class EnumTest(object): class EnumTest(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class FormatTest(object): class FormatTest(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class HasOnlyReadOnly(object): class HasOnlyReadOnly(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class List(object): class List(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class MapTest(object): class MapTest(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -19,7 +19,8 @@ from petstore_api.models.animal import Animal # noqa: F401,E501
class MixedPropertiesAndAdditionalPropertiesClass(object): class MixedPropertiesAndAdditionalPropertiesClass(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class Model200Response(object): class Model200Response(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -1,138 +0,0 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Model200Response(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
'name': 'int',
'_class': 'str'
}
attribute_map = {
'name': 'name',
'_class': 'class'
}
def __init__(self, name=None, _class=None): # noqa: E501
"""Model200Response - a model defined in Swagger""" # noqa: E501
self._name = None
self.__class = None
self.discriminator = None
if name is not None:
self.name = name
if _class is not None:
self._class = _class
@property
def name(self):
"""Gets the name of this Model200Response. # noqa: E501
:return: The name of this Model200Response. # noqa: E501
:rtype: int
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this Model200Response.
:param name: The name of this Model200Response. # noqa: E501
:type: int
"""
self._name = name
@property
def _class(self):
"""Gets the _class of this Model200Response. # noqa: E501
:return: The _class of this Model200Response. # noqa: E501
:rtype: str
"""
return self.__class
@_class.setter
def _class(self, _class):
"""Sets the _class of this Model200Response.
:param _class: The _class of this Model200Response. # noqa: E501
:type: str
"""
self.__class = _class
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, Model200Response):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -17,7 +17,8 @@ import six
class ModelReturn(object): class ModelReturn(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class Name(object): class Name(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class NumberOnly(object): class NumberOnly(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class Order(object): class Order(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -1,84 +0,0 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class OuterBoolean(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""OuterBoolean - a model defined in Swagger""" # noqa: E501
self.discriminator = None
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, OuterBoolean):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -17,7 +17,8 @@ import six
class OuterComposite(object): class OuterComposite(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class OuterEnum(object): class OuterEnum(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -1,84 +0,0 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class OuterNumber(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""OuterNumber - a model defined in Swagger""" # noqa: E501
self.discriminator = None
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, OuterNumber):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -1,84 +0,0 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class OuterString(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
swagger_types = {
}
attribute_map = {
}
def __init__(self): # noqa: E501
"""OuterString - a model defined in Swagger""" # noqa: E501
self.discriminator = None
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
for attr, _ in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map(
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
value
))
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict") else item,
value.items()
))
else:
result[attr] = value
return result
def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())
def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()
def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, OuterString):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

View File

@ -20,7 +20,8 @@ from petstore_api.models.tag import Tag # noqa: F401,E501
class Pet(object): class Pet(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class ReadOnlyFirst(object): class ReadOnlyFirst(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class SpecialModelName(object): class SpecialModelName(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class Tag(object): class Tag(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -17,7 +17,8 @@ import six
class User(object): class User(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -1,6 +1,6 @@
<project> <project>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>io.swagger</groupId> <groupId>org.openapitools</groupId>
<artifactId>PythonAsyncioClientTests</artifactId> <artifactId>PythonAsyncioClientTests</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """
@ -53,6 +52,12 @@ class TestFakeApi(unittest.TestCase):
""" """
pass pass
def test_test_body_with_query_params(self):
"""Test case for test_body_with_query_params
"""
pass
def test_test_client_model(self): def test_test_client_model(self):
"""Test case for test_client_model """Test case for test_client_model

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,40 +0,0 @@
# coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import petstore_api
from petstore_api.models.model_200_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.model_200_response.Model200Response() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

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

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

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

View File

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

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -1,13 +1,12 @@
# coding: utf-8 # coding: utf-8
""" """
Swagger Petstore OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0 OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io Generated by: https://openapi-generator.tech
Generated by: https://github.com/swagger-api/swagger-codegen.git
""" """

View File

@ -53,7 +53,7 @@ class TestPetApiTests(unittest.TestCase):
self.category.name = "dog" self.category.name = "dog"
self.tag = petstore_api.Tag() self.tag = petstore_api.Tag()
self.tag.id = id_gen() self.tag.id = id_gen()
self.tag.name = "swagger-codegen-python-pet-tag" self.tag.name = "openapi-generator-python-pet-tag"
self.pet = petstore_api.Pet(name="hello kity", photo_urls=["http://foo.bar.com/1", "http://foo.bar.com/2"]) self.pet = petstore_api.Pet(name="hello kity", photo_urls=["http://foo.bar.com/1", "http://foo.bar.com/2"])
self.pet.id = id_gen() self.pet.id = id_gen()
self.pet.status = "sold" self.pet.status = "sold"

View File

@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient
class AnotherFakeApi(object): class AnotherFakeApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient
class FakeApi(object): class FakeApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient
class FakeClassnameTags123Api(object): class FakeClassnameTags123Api(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient
class PetApi(object): class PetApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient
class StoreApi(object): class StoreApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

View File

@ -21,7 +21,8 @@ from petstore_api.api_client import ApiClient
class UserApi(object): class UserApi(object):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). """NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually. Do not edit the class manually.
""" """

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