update python to use test spec

This commit is contained in:
wing328
2016-04-14 18:30:54 +08:00
parent 261fa26b1e
commit 5a88b9e896
19 changed files with 236 additions and 907 deletions

View File

@@ -2,11 +2,11 @@ from __future__ import absolute_import
# import models into model package
from .animal import Animal
from .api_response import ApiResponse
from .cat import Cat
from .category import Category
from .dog import Dog
from .format_test import FormatTest
from .inline_response_200 import InlineResponse200
from .model_200_response import Model200Response
from .model_return import ModelReturn
from .name import Name

View File

@@ -47,7 +47,8 @@ class FormatTest(object):
'byte': 'str',
'binary': 'str',
'date': 'date',
'date_time': 'str'
'date_time': 'datetime',
'password': 'str'
}
self.attribute_map = {
@@ -61,7 +62,8 @@ class FormatTest(object):
'byte': 'byte',
'binary': 'binary',
'date': 'date',
'date_time': 'dateTime'
'date_time': 'dateTime',
'password': 'password'
}
self._integer = None
@@ -75,6 +77,7 @@ class FormatTest(object):
self._binary = None
self._date = None
self._date_time = None
self._password = None
@property
def integer(self):
@@ -303,7 +306,7 @@ class FormatTest(object):
:return: The date_time of this FormatTest.
:rtype: str
:rtype: datetime
"""
return self._date_time
@@ -314,10 +317,32 @@ class FormatTest(object):
:param date_time: The date_time of this FormatTest.
:type: str
:type: datetime
"""
self._date_time = date_time
@property
def password(self):
"""
Gets the password of this FormatTest.
:return: The password of this FormatTest.
:rtype: str
"""
return self._password
@password.setter
def password(self, password):
"""
Sets the password of this FormatTest.
:param password: The password of this FormatTest.
:type: str
"""
self._password = password
def to_dict(self):
"""
Returns the model properties as a dict

View File

@@ -59,7 +59,7 @@ class Order(object):
self._quantity = None
self._ship_date = None
self._status = None
self._complete = None
self._complete = False
@property
def id(self):