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/tests/unit | |
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/tests/unit')
-rw-r--r-- | utils/test/result_collection_api/tests/unit/test_dashboard.py | 1 | ||||
-rw-r--r-- | utils/test/result_collection_api/tests/unit/test_result.py | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/utils/test/result_collection_api/tests/unit/test_dashboard.py b/utils/test/result_collection_api/tests/unit/test_dashboard.py index 3e713332c..5c3f92492 100644 --- a/utils/test/result_collection_api/tests/unit/test_dashboard.py +++ b/utils/test/result_collection_api/tests/unit/test_dashboard.py @@ -44,7 +44,6 @@ class TestDashboardQuery(TestDashboardBase): def test_success(self): code, body = self.query(self._set_query()) self.assertEqual(code, HTTP_OK) - print(body) self.assertIn('{"description": "vPing results for Dashboard"}', body) def test_caseIsStatus(self): diff --git a/utils/test/result_collection_api/tests/unit/test_result.py b/utils/test/result_collection_api/tests/unit/test_result.py index f08ccea83..7829d7c6a 100644 --- a/utils/test/result_collection_api/tests/unit/test_result.py +++ b/utils/test/result_collection_api/tests/unit/test_result.py @@ -234,6 +234,7 @@ class TestResultGet(TestResultBase): self.assertEqual(0, len(body.results)) else: for result in body.results: + self.assertEqual(1, len(body.results)) self.assert_res(code, result) def _set_query(self, *args): |