diff --git a/testrail_api_reporter/engines/results_reporter.py b/testrail_api_reporter/engines/results_reporter.py index 90a46c5..7c06723 100644 --- a/testrail_api_reporter/engines/results_reporter.py +++ b/testrail_api_reporter/engines/results_reporter.py @@ -127,8 +127,7 @@ def __ensure_automation_section(self, title="pytest", debug=None): self.__self_check() return None first_run = False - # pylint: disable=E1136 - elif response["_links"]["next"] is not None: + elif response["_links"]["next"] is not None: # pylint: disable=E1136 offset = int(response["_links"]["next"].split("&offset=")[1].split("&")[0]) response = self.__api.sections.get_sections( project_id=self.__project_id, suite_id=self.__suite_id, offset=offset @@ -201,6 +200,7 @@ def __enrich_with_tc_num(self, xml_dict_list, tc_dict_list, debug=None): print(f"{len(enriched_list)} test results were prepared for send.") return enriched_list + # pylint: disable=R0912 def __get_all_auto_cases(self, retries=3, debug=None): """ Collects all test cases from TestRails with non-empty automation_id @@ -234,8 +234,7 @@ def __get_all_auto_cases(self, retries=3, debug=None): return None first_run = False retry = 0 - # pylint: disable=E1136 - elif response["_links"]["next"] is not None: + elif response["_links"]["next"] is not None: # pylint: disable=E1136 offset = int(response["_links"]["next"].split("&offset=")[1].split("&")[0]) try: response = self.__api.cases.get_cases( @@ -484,8 +483,7 @@ def __search_for_run_by_name(self, title=None): print(f"Can't get run list. Something nasty happened.\nError{format_error(error)}") break first_run = False - # pylint: disable=E1136 - elif response["_links"]["next"] is not None: + elif response["_links"]["next"] is not None: # pylint: disable=E1136 offset = int(response["_links"]["next"].split("&offset=")[1].split("&")[0]) response = self.__api.runs.get_runs( project_id=self.__project_id, suite_id=self.__suite_id, offset=offset