diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-05-31 10:37:22 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-05-31 11:18:07 +0800 |
commit | f370cd64bd91b7801fda180172dc656a830edeb2 (patch) | |
tree | d3911d61a6470486ebc8474b9c75c1831bd3214f /result_collection_api/resources/testcase_models.py | |
parent | dc13d5eac8f110678c1105ca3e06a58b999298ec (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.py | 5 |
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): |