Merge pull request #3050 from taxpon/issue-3041

[Python] Follow PEP8 rules ( Issue #3041 )
This commit is contained in:
wing328 2016-06-06 18:18:36 +08:00
commit 895f13cc11
68 changed files with 654 additions and 879 deletions

View File

@ -73,7 +73,6 @@ class {{classname}}(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
{{#allParams}} {{#allParams}}
{{#required}} {{#required}}
# verify the required parameter '{{paramName}}' is set # verify the required parameter '{{paramName}}' is set
@ -106,7 +105,6 @@ class {{classname}}(object):
{{/pattern}} {{/pattern}}
{{/hasValidation}} {{/hasValidation}}
{{/allParams}} {{/allParams}}
resource_path = '{{path}}'.replace('{format}', 'json') resource_path = '{{path}}'.replace('{format}', 'json')
path_params = {} path_params = {}
{{#pathParams}} {{#pathParams}}

View File

@ -191,7 +191,7 @@ class ApiClient(object):
:return: The serialized form of data. :return: The serialized form of data.
""" """
types = (str, int, float, bool, tuple) types = (str, int, float, bool, tuple)
if sys.version_info < (3,0): if sys.version_info < (3, 0):
types = types + (unicode,) types = types + (unicode,)
if isinstance(obj, type(None)): if isinstance(obj, type(None)):
return None return None

View File

@ -17,6 +17,7 @@ import logging
from six import iteritems from six import iteritems
def singleton(cls, *args, **kw): def singleton(cls, *args, **kw):
instances = {} instances = {}
@ -59,7 +60,6 @@ class Configuration(object):
# access token for OAuth # access token for OAuth
self.access_token = "" self.access_token = ""
{{/isOAuth}}{{/authMethods}} {{/isOAuth}}{{/authMethods}}
# Logging Settings # Logging Settings
self.logger = {} self.logger = {}
self.logger["package_logger"] = logging.getLogger("{{packageName}}") self.logger["package_logger"] = logging.getLogger("{{packageName}}")

View File

@ -36,8 +36,8 @@ class {{classname}}(object):
{{#vars}} {{#vars}}
self._{{name}} = {{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}None{{/defaultValue}} self._{{name}} = {{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}None{{/defaultValue}}
{{/vars}} {{/vars}}
{{#vars}}{{#-first}}
{{#vars}} {{/-first}}
@property @property
def {{name}}(self): def {{name}}(self):
""" """
@ -58,7 +58,8 @@ class {{classname}}(object):
:param {{name}}: The {{name}} of this {{classname}}. :param {{name}}: The {{name}} of this {{classname}}.
:type: {{datatype}} :type: {{datatype}}
""" """
{{#isEnum}}allowed_values = [{{#allowableValues}}{{#values}}"{{{this}}}"{{^-last}}, {{/-last}}{{/values}}{{/allowableValues}}] {{#isEnum}}
allowed_values = [{{#allowableValues}}{{#values}}"{{{this}}}"{{^-last}}, {{/-last}}{{/values}}{{/allowableValues}}]
if {{name}} not in allowed_values: if {{name}} not in allowed_values:
raise ValueError( raise ValueError(
"Invalid value for `{{name}}`, must be one of {0}" "Invalid value for `{{name}}`, must be one of {0}"
@ -145,6 +146,5 @@ class {{classname}}(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other
{{/model}} {{/model}}
{{/models}} {{/models}}

View File

@ -7,9 +7,7 @@ from setuptools import setup, find_packages
NAME = "{{packageName}}" NAME = "{{packageName}}"
VERSION = "{{packageVersion}}" VERSION = "{{packageVersion}}"
{{#apiInfo}}{{#apis}}{{^hasMore}} {{#apiInfo}}{{#apis}}{{^hasMore}}
# To install the library, run the following # To install the library, run the following
# #
# python setup.py install # python setup.py install
@ -33,5 +31,4 @@ setup(
{{appDescription}} {{appDescription}}
""" """
) )
{{/hasMore}}{{/apis}}{{/apiInfo}} {{/hasMore}}{{/apis}}{{/apiInfo}}

View File

@ -5,7 +5,7 @@ This Python package is automatically generated by the [Swagger Codegen](https://
- API version: 1.0.0 - API version: 1.0.0
- Package version: 1.0.0 - Package version: 1.0.0
- Build date: 2016-06-02T12:44:41.178+09:00 - Build date: 2016-06-05T23:15:10.095+09:00
- Build package: class io.swagger.codegen.languages.PythonClientCodegen - Build package: class io.swagger.codegen.languages.PythonClientCodegen
## Requirements. ## Requirements.

View File

@ -28,8 +28,6 @@ from setuptools import setup, find_packages
NAME = "swagger_client" NAME = "swagger_client"
VERSION = "1.0.0" VERSION = "1.0.0"
# To install the library, run the following # To install the library, run the following
# #
# python setup.py install # python setup.py install
@ -53,5 +51,3 @@ setup(
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \&quot; \\ This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \&quot; \\
""" """
) )

View File

@ -191,7 +191,7 @@ class ApiClient(object):
:return: The serialized form of data. :return: The serialized form of data.
""" """
types = (str, int, float, bool, tuple) types = (str, int, float, bool, tuple)
if sys.version_info < (3,0): if sys.version_info < (3, 0):
types = types + (unicode,) types = types + (unicode,)
if isinstance(obj, type(None)): if isinstance(obj, type(None)):
return None return None

View File

@ -95,7 +95,6 @@ class FakeApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'number' is set # verify the required parameter 'number' is set
if ('number' not in params) or (params['number'] is None): if ('number' not in params) or (params['number'] is None):
raise ValueError("Missing the required parameter `number` when calling `test_endpoint_parameters`") raise ValueError("Missing the required parameter `number` when calling `test_endpoint_parameters`")
@ -133,7 +132,6 @@ class FakeApi(object):
raise ValueError("Invalid value for parameter `password` when calling `test_endpoint_parameters`, length must be less than or equal to `64`") raise ValueError("Invalid value for parameter `password` when calling `test_endpoint_parameters`, length must be less than or equal to `64`")
if 'password' in params and len(params['password']) < 10: if 'password' in params and len(params['password']) < 10:
raise ValueError("Invalid value for parameter `password` when calling `test_endpoint_parameters`, length must be greater than or equal to `10`") raise ValueError("Invalid value for parameter `password` when calling `test_endpoint_parameters`, length must be greater than or equal to `10`")
resource_path = '/fake'.replace('{format}', 'json') resource_path = '/fake'.replace('{format}', 'json')
path_params = {} path_params = {}

View File

@ -84,12 +84,10 @@ class PetApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'body' is set # verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None): if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `add_pet`") raise ValueError("Missing the required parameter `body` when calling `add_pet`")
resource_path = '/pet'.replace('{format}', 'json') resource_path = '/pet'.replace('{format}', 'json')
path_params = {} path_params = {}
@ -163,12 +161,10 @@ class PetApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'pet_id' is set # verify the required parameter 'pet_id' is set
if ('pet_id' not in params) or (params['pet_id'] is None): if ('pet_id' not in params) or (params['pet_id'] is None):
raise ValueError("Missing the required parameter `pet_id` when calling `delete_pet`") raise ValueError("Missing the required parameter `pet_id` when calling `delete_pet`")
resource_path = '/pet/{petId}'.replace('{format}', 'json') resource_path = '/pet/{petId}'.replace('{format}', 'json')
path_params = {} path_params = {}
if 'pet_id' in params: if 'pet_id' in params:
@ -243,12 +239,10 @@ class PetApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'status' is set # verify the required parameter 'status' is set
if ('status' not in params) or (params['status'] is None): if ('status' not in params) or (params['status'] is None):
raise ValueError("Missing the required parameter `status` when calling `find_pets_by_status`") raise ValueError("Missing the required parameter `status` when calling `find_pets_by_status`")
resource_path = '/pet/findByStatus'.replace('{format}', 'json') resource_path = '/pet/findByStatus'.replace('{format}', 'json')
path_params = {} path_params = {}
@ -321,12 +315,10 @@ class PetApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'tags' is set # verify the required parameter 'tags' is set
if ('tags' not in params) or (params['tags'] is None): if ('tags' not in params) or (params['tags'] is None):
raise ValueError("Missing the required parameter `tags` when calling `find_pets_by_tags`") raise ValueError("Missing the required parameter `tags` when calling `find_pets_by_tags`")
resource_path = '/pet/findByTags'.replace('{format}', 'json') resource_path = '/pet/findByTags'.replace('{format}', 'json')
path_params = {} path_params = {}
@ -399,12 +391,10 @@ class PetApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'pet_id' is set # verify the required parameter 'pet_id' is set
if ('pet_id' not in params) or (params['pet_id'] is None): if ('pet_id' not in params) or (params['pet_id'] is None):
raise ValueError("Missing the required parameter `pet_id` when calling `get_pet_by_id`") raise ValueError("Missing the required parameter `pet_id` when calling `get_pet_by_id`")
resource_path = '/pet/{petId}'.replace('{format}', 'json') resource_path = '/pet/{petId}'.replace('{format}', 'json')
path_params = {} path_params = {}
if 'pet_id' in params: if 'pet_id' in params:
@ -477,12 +467,10 @@ class PetApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'body' is set # verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None): if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `update_pet`") raise ValueError("Missing the required parameter `body` when calling `update_pet`")
resource_path = '/pet'.replace('{format}', 'json') resource_path = '/pet'.replace('{format}', 'json')
path_params = {} path_params = {}
@ -557,12 +545,10 @@ class PetApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'pet_id' is set # verify the required parameter 'pet_id' is set
if ('pet_id' not in params) or (params['pet_id'] is None): if ('pet_id' not in params) or (params['pet_id'] is None):
raise ValueError("Missing the required parameter `pet_id` when calling `update_pet_with_form`") raise ValueError("Missing the required parameter `pet_id` when calling `update_pet_with_form`")
resource_path = '/pet/{petId}'.replace('{format}', 'json') resource_path = '/pet/{petId}'.replace('{format}', 'json')
path_params = {} path_params = {}
if 'pet_id' in params: if 'pet_id' in params:
@ -641,12 +627,10 @@ class PetApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'pet_id' is set # verify the required parameter 'pet_id' is set
if ('pet_id' not in params) or (params['pet_id'] is None): if ('pet_id' not in params) or (params['pet_id'] is None):
raise ValueError("Missing the required parameter `pet_id` when calling `upload_file`") raise ValueError("Missing the required parameter `pet_id` when calling `upload_file`")
resource_path = '/pet/{petId}/uploadImage'.replace('{format}', 'json') resource_path = '/pet/{petId}/uploadImage'.replace('{format}', 'json')
path_params = {} path_params = {}
if 'pet_id' in params: if 'pet_id' in params:

View File

@ -84,14 +84,12 @@ class StoreApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'order_id' is set # verify the required parameter 'order_id' is set
if ('order_id' not in params) or (params['order_id'] is None): if ('order_id' not in params) or (params['order_id'] is None):
raise ValueError("Missing the required parameter `order_id` when calling `delete_order`") raise ValueError("Missing the required parameter `order_id` when calling `delete_order`")
if 'order_id' in params and params['order_id'] < 1.0: if 'order_id' in params and params['order_id'] < 1.0:
raise ValueError("Invalid value for parameter `order_id` when calling `delete_order`, must be a value greater than or equal to `1.0`") raise ValueError("Invalid value for parameter `order_id` when calling `delete_order`, must be a value greater than or equal to `1.0`")
resource_path = '/store/order/{orderId}'.replace('{format}', 'json') resource_path = '/store/order/{orderId}'.replace('{format}', 'json')
path_params = {} path_params = {}
if 'order_id' in params: if 'order_id' in params:
@ -164,8 +162,6 @@ class StoreApi(object):
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
resource_path = '/store/inventory'.replace('{format}', 'json') resource_path = '/store/inventory'.replace('{format}', 'json')
path_params = {} path_params = {}
@ -236,7 +232,6 @@ class StoreApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'order_id' is set # verify the required parameter 'order_id' is set
if ('order_id' not in params) or (params['order_id'] is None): if ('order_id' not in params) or (params['order_id'] is None):
raise ValueError("Missing the required parameter `order_id` when calling `get_order_by_id`") raise ValueError("Missing the required parameter `order_id` when calling `get_order_by_id`")
@ -245,7 +240,6 @@ class StoreApi(object):
raise ValueError("Invalid value for parameter `order_id` when calling `get_order_by_id`, must be a value less than or equal to `5.0`") raise ValueError("Invalid value for parameter `order_id` when calling `get_order_by_id`, must be a value less than or equal to `5.0`")
if 'order_id' in params and params['order_id'] < 1.0: if 'order_id' in params and params['order_id'] < 1.0:
raise ValueError("Invalid value for parameter `order_id` when calling `get_order_by_id`, must be a value greater than or equal to `1.0`") raise ValueError("Invalid value for parameter `order_id` when calling `get_order_by_id`, must be a value greater than or equal to `1.0`")
resource_path = '/store/order/{orderId}'.replace('{format}', 'json') resource_path = '/store/order/{orderId}'.replace('{format}', 'json')
path_params = {} path_params = {}
if 'order_id' in params: if 'order_id' in params:
@ -318,12 +312,10 @@ class StoreApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'body' is set # verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None): if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `place_order`") raise ValueError("Missing the required parameter `body` when calling `place_order`")
resource_path = '/store/order'.replace('{format}', 'json') resource_path = '/store/order'.replace('{format}', 'json')
path_params = {} path_params = {}

View File

@ -84,12 +84,10 @@ class UserApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'body' is set # verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None): if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `create_user`") raise ValueError("Missing the required parameter `body` when calling `create_user`")
resource_path = '/user'.replace('{format}', 'json') resource_path = '/user'.replace('{format}', 'json')
path_params = {} path_params = {}
@ -162,12 +160,10 @@ class UserApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'body' is set # verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None): if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `create_users_with_array_input`") raise ValueError("Missing the required parameter `body` when calling `create_users_with_array_input`")
resource_path = '/user/createWithArray'.replace('{format}', 'json') resource_path = '/user/createWithArray'.replace('{format}', 'json')
path_params = {} path_params = {}
@ -240,12 +236,10 @@ class UserApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'body' is set # verify the required parameter 'body' is set
if ('body' not in params) or (params['body'] is None): if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `create_users_with_list_input`") raise ValueError("Missing the required parameter `body` when calling `create_users_with_list_input`")
resource_path = '/user/createWithList'.replace('{format}', 'json') resource_path = '/user/createWithList'.replace('{format}', 'json')
path_params = {} path_params = {}
@ -318,12 +312,10 @@ class UserApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'username' is set # verify the required parameter 'username' is set
if ('username' not in params) or (params['username'] is None): if ('username' not in params) or (params['username'] is None):
raise ValueError("Missing the required parameter `username` when calling `delete_user`") raise ValueError("Missing the required parameter `username` when calling `delete_user`")
resource_path = '/user/{username}'.replace('{format}', 'json') resource_path = '/user/{username}'.replace('{format}', 'json')
path_params = {} path_params = {}
if 'username' in params: if 'username' in params:
@ -396,12 +388,10 @@ class UserApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'username' is set # verify the required parameter 'username' is set
if ('username' not in params) or (params['username'] is None): if ('username' not in params) or (params['username'] is None):
raise ValueError("Missing the required parameter `username` when calling `get_user_by_name`") raise ValueError("Missing the required parameter `username` when calling `get_user_by_name`")
resource_path = '/user/{username}'.replace('{format}', 'json') resource_path = '/user/{username}'.replace('{format}', 'json')
path_params = {} path_params = {}
if 'username' in params: if 'username' in params:
@ -475,7 +465,6 @@ class UserApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'username' is set # verify the required parameter 'username' is set
if ('username' not in params) or (params['username'] is None): if ('username' not in params) or (params['username'] is None):
raise ValueError("Missing the required parameter `username` when calling `login_user`") raise ValueError("Missing the required parameter `username` when calling `login_user`")
@ -483,7 +472,6 @@ class UserApi(object):
if ('password' not in params) or (params['password'] is None): if ('password' not in params) or (params['password'] is None):
raise ValueError("Missing the required parameter `password` when calling `login_user`") raise ValueError("Missing the required parameter `password` when calling `login_user`")
resource_path = '/user/login'.replace('{format}', 'json') resource_path = '/user/login'.replace('{format}', 'json')
path_params = {} path_params = {}
@ -558,8 +546,6 @@ class UserApi(object):
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
resource_path = '/user/logout'.replace('{format}', 'json') resource_path = '/user/logout'.replace('{format}', 'json')
path_params = {} path_params = {}
@ -631,7 +617,6 @@ class UserApi(object):
) )
params[key] = val params[key] = val
del params['kwargs'] del params['kwargs']
# verify the required parameter 'username' is set # verify the required parameter 'username' is set
if ('username' not in params) or (params['username'] is None): if ('username' not in params) or (params['username'] is None):
raise ValueError("Missing the required parameter `username` when calling `update_user`") raise ValueError("Missing the required parameter `username` when calling `update_user`")
@ -639,7 +624,6 @@ class UserApi(object):
if ('body' not in params) or (params['body'] is None): if ('body' not in params) or (params['body'] is None):
raise ValueError("Missing the required parameter `body` when calling `update_user`") raise ValueError("Missing the required parameter `body` when calling `update_user`")
resource_path = '/user/{username}'.replace('{format}', 'json') resource_path = '/user/{username}'.replace('{format}', 'json')
path_params = {} path_params = {}
if 'username' in params: if 'username' in params:

View File

@ -37,6 +37,7 @@ import logging
from six import iteritems from six import iteritems
def singleton(cls, *args, **kw): def singleton(cls, *args, **kw):
instances = {} instances = {}
@ -79,7 +80,6 @@ class Configuration(object):
# access token for OAuth # access token for OAuth
self.access_token = "" self.access_token = ""
# Logging Settings # Logging Settings
self.logger = {} self.logger = {}
self.logger["package_logger"] = logging.getLogger("swagger_client") self.logger["package_logger"] = logging.getLogger("swagger_client")

View File

@ -149,4 +149,3 @@ class AdditionalPropertiesClass(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -149,4 +149,3 @@ class Animal(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -49,7 +49,6 @@ class AnimalFarm(object):
} }
def to_dict(self): def to_dict(self):
""" """
Returns the model properties as a dict Returns the model properties as a dict
@ -99,4 +98,3 @@ class AnimalFarm(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -175,4 +175,3 @@ class ApiResponse(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -175,4 +175,3 @@ class ArrayTest(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -175,4 +175,3 @@ class Cat(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -149,4 +149,3 @@ class Category(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -175,4 +175,3 @@ class Dog(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -49,7 +49,6 @@ class EnumClass(object):
} }
def to_dict(self): def to_dict(self):
""" """
Returns the model properties as a dict Returns the model properties as a dict
@ -99,4 +98,3 @@ class EnumClass(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -193,4 +193,3 @@ class EnumTest(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -482,4 +482,3 @@ class FormatTest(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -1,251 +0,0 @@
# coding: utf-8
"""
Copyright 2016 SmartBear Software
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Ref: https://github.com/swagger-api/swagger-codegen
"""
from pprint import pformat
from six import iteritems
class InlineResponse200(object):
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
def __init__(self):
"""
InlineResponse200 - a model defined in Swagger
:param dict swaggerTypes: The key is attribute name
and the value is attribute type.
:param dict attributeMap: The key is attribute name
and the value is json key in definition.
"""
self.swagger_types = {
'tags': 'list[Tag]',
'id': 'int',
'category': 'object',
'status': 'str',
'name': 'str',
'photo_urls': 'list[str]'
}
self.attribute_map = {
'tags': 'tags',
'id': 'id',
'category': 'category',
'status': 'status',
'name': 'name',
'photo_urls': 'photoUrls'
}
self._tags = None
self._id = None
self._category = None
self._status = None
self._name = None
self._photo_urls = None
@property
def tags(self):
"""
Gets the tags of this InlineResponse200.
:return: The tags of this InlineResponse200.
:rtype: list[Tag]
"""
return self._tags
@tags.setter
def tags(self, tags):
"""
Sets the tags of this InlineResponse200.
:param tags: The tags of this InlineResponse200.
:type: list[Tag]
"""
self._tags = tags
@property
def id(self):
"""
Gets the id of this InlineResponse200.
:return: The id of this InlineResponse200.
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""
Sets the id of this InlineResponse200.
:param id: The id of this InlineResponse200.
:type: int
"""
self._id = id
@property
def category(self):
"""
Gets the category of this InlineResponse200.
:return: The category of this InlineResponse200.
:rtype: object
"""
return self._category
@category.setter
def category(self, category):
"""
Sets the category of this InlineResponse200.
:param category: The category of this InlineResponse200.
:type: object
"""
self._category = category
@property
def status(self):
"""
Gets the status of this InlineResponse200.
pet status in the store
:return: The status of this InlineResponse200.
:rtype: str
"""
return self._status
@status.setter
def status(self, status):
"""
Sets the status of this InlineResponse200.
pet status in the store
:param status: The status of this InlineResponse200.
:type: str
"""
allowed_values = ["available", "pending", "sold"]
if status not in allowed_values:
raise ValueError(
"Invalid value for `status`, must be one of {0}"
.format(allowed_values)
)
self._status = status
@property
def name(self):
"""
Gets the name of this InlineResponse200.
:return: The name of this InlineResponse200.
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""
Sets the name of this InlineResponse200.
:param name: The name of this InlineResponse200.
:type: str
"""
self._name = name
@property
def photo_urls(self):
"""
Gets the photo_urls of this InlineResponse200.
:return: The photo_urls of this InlineResponse200.
:rtype: list[str]
"""
return self._photo_urls
@photo_urls.setter
def photo_urls(self, photo_urls):
"""
Sets the photo_urls of this InlineResponse200.
:param photo_urls: The photo_urls of this InlineResponse200.
:type: list[str]
"""
self._photo_urls = photo_urls
def to_dict(self):
"""
Returns the model properties as a dict
"""
result = {}
for attr, _ in 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 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
"""
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""
Returns true if both objects are not equal
"""
return not self == other

View File

@ -175,4 +175,3 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -123,4 +123,3 @@ class Model200Response(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -123,4 +123,3 @@ class ModelReturn(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -201,4 +201,3 @@ class Name(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -259,4 +259,3 @@ class Order(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -259,4 +259,3 @@ class Pet(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -149,4 +149,3 @@ class ReadOnlyFirst(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -123,4 +123,3 @@ class SpecialModelName(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -149,4 +149,3 @@ class Tag(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -305,4 +305,3 @@ class User(object):
Returns true if both objects are not equal Returns true if both objects are not equal
""" """
return not self == other return not self == other

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import
@ -42,7 +46,7 @@ class TestFakeApi(unittest.TestCase):
""" """
Test case for test_endpoint_parameters Test case for test_endpoint_parameters
Fake endpoint for testing various parameters Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
""" """
pass pass

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -1,7 +1,13 @@
# coding: utf-8 # coding: utf-8
""" """
Copyright 2016 SmartBear Software Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,8 +20,6 @@ Copyright 2016 SmartBear Software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
ref: https://github.com/swagger-api/swagger-codegen
""" """
from __future__ import absolute_import from __future__ import absolute_import

View File

@ -87,4 +87,3 @@ class ApiExceptionTests(unittest.TestCase):
return self.assertRegexpMatches(text, expected_regex) return self.assertRegexpMatches(text, expected_regex)
return self.assertRegex(text, expected_regex) return self.assertRegex(text, expected_regex)

View File

@ -106,7 +106,8 @@ class DeserializationTests(unittest.TestCase):
def test_deserialize_list_of_pet(self): def test_deserialize_list_of_pet(self):
""" deserialize list[Pet] """ """ deserialize list[Pet] """
data = [{ data = [
{
"id": 0, "id": 0,
"category": { "category": {
"id": 0, "id": 0,