diff options
author | 2015-08-31 14:45:53 +0200 | |
---|---|---|
committer | 2015-09-02 15:12:27 +0200 | |
commit | 8d3001573dd51a3cbdc7c46b5b35f5f6812761ab (patch) | |
tree | 5b14de357b0379a66007388afe37a66579582256 /result_collection_api/resources/models.py | |
parent | 737ff5abfe2711cb8c1e36729e41be723a03305b (diff) |
Fix minor bugs for result_collection_api
JIRA : RELENG-7
Change-Id: Id3cda0a0a73fcf1d05de751a7f48bbae2145fbf4
Signed-off-by: Guy Rodrigue Koffi <koffirodrigue@gmail.com>
Diffstat (limited to 'result_collection_api/resources/models.py')
-rw-r--r-- | result_collection_api/resources/models.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/result_collection_api/resources/models.py b/result_collection_api/resources/models.py index bb4cb0c..82c17fd 100644 --- a/result_collection_api/resources/models.py +++ b/result_collection_api/resources/models.py @@ -114,7 +114,7 @@ class TestCase: "description": self.description, "creation_date": str(self.creation_date), } - if not (test_project is None): + if test_project is not None: res["test_project"] = test_project return res @@ -128,6 +128,8 @@ class TestResult: self.case_name = None self.project_name = None self.pod_id = None + self.installer = None + self.platform_version = None self.description = None self.creation_date = None self.details = None @@ -155,7 +157,7 @@ class TestResult: "project_name": self.project_name, "pod_id": self.pod_id, "description": self.description, - "creation_date": self.creation_date, + "creation_date": str(self.creation_date), "details": self.details, } @@ -166,6 +168,6 @@ class TestResult: "project_name": self.project_name, "pod_id": self.pod_id, "description": self.description, - "creation_date": self.creation_date, + "creation_date": str(self.creation_date), "details": self.details, } |