summaryrefslogtreecommitdiffstats
path: root/utils/test/result_collection_api/tests/unit
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-05-31 07:16:10 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-05-31 07:16:10 +0000
commit5f9b28c07c1fc4bab041fdab2fbf9723a49dc6a7 (patch)
treeb2540fc7b85b9c4871fb14b62af78313b69e1bcf /utils/test/result_collection_api/tests/unit
parent9a758c37d8464ba6a452f83b30e8bf8af072eb67 (diff)
parentf3235be772439981fa9e0f781b4e130b0860dad0 (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/tests/unit')
-rw-r--r--utils/test/result_collection_api/tests/unit/test_dashboard.py1
-rw-r--r--utils/test/result_collection_api/tests/unit/test_result.py1
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):