update python samples and comment out flake test (#1308)

This commit is contained in:
William Cheng 2018-10-24 21:02:23 +08:00 committed by GitHub
parent 24ea88495b
commit 196f1228e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 21 additions and 18 deletions

View File

@ -1 +1 @@
3.3.1-SNAPSHOT
3.3.2-SNAPSHOT

View File

@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | | [optional]
**name** | **str** | | [optional]
**name** | **str** | | [default to 'default-name']
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -40,7 +40,7 @@ class Category(object):
'name': 'name'
}
def __init__(self, id=None, name=None): # noqa: E501
def __init__(self, id=None, name='default-name'): # noqa: E501
"""Category - a model defined in OpenAPI""" # noqa: E501
self._id = None
@ -49,7 +49,6 @@ class Category(object):
if id is not None:
self.id = id
if name is not None:
self.name = name
@property
@ -91,6 +90,8 @@ class Category(object):
:param name: The name of this Category. # noqa: E501
:type: str
"""
if name is None:
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name

View File

@ -24,7 +24,7 @@ python setup.py develop
tox || exit 1
### static analysis of code
flake8 --show-source petstore_api/
#flake8 --show-source petstore_api/
### deactivate virtualenv
#if [ $DEACTIVE == true ]; then

View File

@ -1 +1 @@
3.3.0-SNAPSHOT
3.3.2-SNAPSHOT

View File

@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | | [optional]
**name** | **str** | | [optional]
**name** | **str** | | [default to 'default-name']
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -40,7 +40,7 @@ class Category(object):
'name': 'name'
}
def __init__(self, id=None, name=None): # noqa: E501
def __init__(self, id=None, name='default-name'): # noqa: E501
"""Category - a model defined in OpenAPI""" # noqa: E501
self._id = None
@ -49,7 +49,6 @@ class Category(object):
if id is not None:
self.id = id
if name is not None:
self.name = name
@property
@ -91,6 +90,8 @@ class Category(object):
:param name: The name of this Category. # noqa: E501
:type: str
"""
if name is None:
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name

View File

@ -24,7 +24,7 @@ python setup.py develop
tox || exit 1
### static analysis of code
flake8 --show-source petstore_api/
#flake8 --show-source petstore_api/
### deactivate virtualenv
#if [ $DEACTIVE == true ]; then

View File

@ -1 +1 @@
3.3.0-SNAPSHOT
3.3.2-SNAPSHOT

View File

@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | | [optional]
**name** | **str** | | [optional]
**name** | **str** | | [default to 'default-name']
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -40,7 +40,7 @@ class Category(object):
'name': 'name'
}
def __init__(self, id=None, name=None): # noqa: E501
def __init__(self, id=None, name='default-name'): # noqa: E501
"""Category - a model defined in OpenAPI""" # noqa: E501
self._id = None
@ -49,7 +49,6 @@ class Category(object):
if id is not None:
self.id = id
if name is not None:
self.name = name
@property
@ -91,6 +90,8 @@ class Category(object):
:param name: The name of this Category. # noqa: E501
:type: str
"""
if name is None:
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
self._name = name

View File

@ -24,7 +24,7 @@ python setup.py develop
tox || exit 1
### static analysis of code
flake8 --show-source petstore_api/
#flake8 --show-source petstore_api/
### deactivate virtualenv
#if [ $DEACTIVE == true ]; then