eliminate flake8 violation of testAPI 37/14837/1
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Mon, 30 May 2016 13:58:19 +0000 (21:58 +0800)
committerSerenaFeng <feng.xiaowei@zte.com.cn>
Mon, 30 May 2016 13:58:19 +0000 (21:58 +0800)
JIRA: FUNCTEST-274

Change-Id: I64e5e1c0d1165ac7ad7ff59dfd824dc00e131cdc
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
utils/test/result_collection_api/resources/handlers.py
utils/test/result_collection_api/resources/result_handlers.py
utils/test/result_collection_api/tests/unit/test_result.py

index b4f7117..a2c6b8d 100644 (file)
@@ -177,7 +177,7 @@ class GenericApiHandler(RequestHandler):
         request = dict()
         for k, v in self.json_args.iteritems():
             request = self._update_request(request, k, v,
-                                          data.__getattribute__(k))
+                                           data.__getattribute__(k))
         if not request:
             raise HTTPError(HTTP_FORBIDDEN, "Nothing to update")
         return request
index d344f46..e7fce47 100644 (file)
@@ -54,8 +54,8 @@ class ResultsCLHandler(GenericResultHandler):
                  - period : x (x last days)
                  - scenario : the test scenario (previously version)
                  - criteria : the global criteria status passed or failed
-                 - trust_indicator : evaluate the stability of the test case to avoid
-                 running systematically long and stable test case
+                 - trust_indicator : evaluate the stability of the test case
+                   to avoid running systematically long and stable test case
 
                 GET /results/project=functest&case=vPing&version=Arno-R1 \
                 &pod=pod_name&period=15
index a7541b3..f08ccea 100644 (file)
@@ -155,18 +155,6 @@ class TestResultCreate(TestResultBase):
         self.assert_href(body)
 
     def test_createSameResults(self):
-        # req_again = ResultCreateRequest(pod_name=self.pod,
-        #                                  project_name=self.project,
-        #                                  case_name=self.case,
-        #                                  installer=self.installer,
-        #                                  version=self.version,
-        #                                  start_date="2016-05-23 08:16:09.477097",
-        #                                  stop_date=self.stop_date,
-        #                                  details=self.details.format(),
-        #                                  build_tag=self.build_tag,
-        #                                  scenario=self.scenario,
-        #                                  criteria=self.criteria,
-        #                                  trust_indicator=self.trust_indicator)
         req_again = copy.deepcopy(self.req_d)
         req_again.start_date = "2016-05-23 08:16:09.477097"
         req_again.stop_date = "2016-05-23 08:16:19.477097"