diff options
author | 2016-05-31 07:16:10 +0000 | |
---|---|---|
committer | 2016-05-31 07:16:10 +0000 | |
commit | 5f9b28c07c1fc4bab041fdab2fbf9723a49dc6a7 (patch) | |
tree | b2540fc7b85b9c4871fb14b62af78313b69e1bcf /utils/test/result_collection_api/resources/testcase_models.py | |
parent | 9a758c37d8464ba6a452f83b30e8bf8af072eb67 (diff) | |
parent | f3235be772439981fa9e0f781b4e130b0860dad0 (diff) |
Merge "bugfix: query results failed due to using mutable list initiation and forget to swagger-ize TestResult model"
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): |