summaryrefslogtreecommitdiffstats
path: root/result_collection_api/resources/testcase_models.py
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-05-31 10:37:22 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-05-31 11:18:07 +0800
commitf370cd64bd91b7801fda180172dc656a830edeb2 (patch)
treed3911d61a6470486ebc8474b9c75c1831bd3214f /result_collection_api/resources/testcase_models.py
parentdc13d5eac8f110678c1105ca3e06a58b999298ec (diff)
bugfix: query results failed due to using mutable list initiation
and forget to swagger-ize TestResult model JIRA: FUNCTEST-277 Change-Id: I5d8ddd9983484a61df9b77392d5ae24bde6a16dc Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'result_collection_api/resources/testcase_models.py')
-rw-r--r--result_collection_api/resources/testcase_models.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/result_collection_api/resources/testcase_models.py b/result_collection_api/resources/testcase_models.py
index 90b3f75..a69f2f7 100644
--- a/result_collection_api/resources/testcase_models.py
+++ b/result_collection_api/resources/testcase_models.py
@@ -82,10 +82,11 @@ class Testcase(object):
@swagger.model()
class Testcases(object):
"""
+ @property testcases:
@ptype testcases: C{list} of L{Testcase}
"""
- def __init__(self, testcases=list()):
- self.testcases = testcases
+ def __init__(self):
+ self.testcases = list()
@staticmethod
def from_dict(res_dict):