diff options
author | 2016-05-31 10:37:22 +0800 | |
---|---|---|
committer | 2016-05-31 11:18:07 +0800 | |
commit | f3235be772439981fa9e0f781b4e130b0860dad0 (patch) | |
tree | 21ff5de2addcf54c4bb484dac6cca6f482c0e8a6 /utils/test/result_collection_api/resources/testcase_models.py | |
parent | b52a9ae338f95e710e5f55c85f406900b9954677 (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 'utils/test/result_collection_api/resources/testcase_models.py')
-rw-r--r-- | utils/test/result_collection_api/resources/testcase_models.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/test/result_collection_api/resources/testcase_models.py b/utils/test/result_collection_api/resources/testcase_models.py index 90b3f75e9..a69f2f751 100644 --- a/utils/test/result_collection_api/resources/testcase_models.py +++ b/utils/test/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): |