From f3235be772439981fa9e0f781b4e130b0860dad0 Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Tue, 31 May 2016 10:37:22 +0800 Subject: 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 --- utils/test/result_collection_api/resources/project_models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'utils/test/result_collection_api/resources/project_models.py') diff --git a/utils/test/result_collection_api/resources/project_models.py b/utils/test/result_collection_api/resources/project_models.py index a1592c31d..1dc0c40e5 100644 --- a/utils/test/result_collection_api/resources/project_models.py +++ b/utils/test/result_collection_api/resources/project_models.py @@ -71,10 +71,11 @@ class Project(object): @swagger.model() class Projects(object): """ + @property projects: @ptype projects: C{list} of L{Project} """ - def __init__(self, projects=list()): - self.projects = projects + def __init__(self): + self.projects = list() @staticmethod def from_dict(res_dict): -- cgit 1.2.3-korg