diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 153fc5b..8e314fb 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -31,6 +31,8 @@ jobs: pip install mypy reorder-python-imports pip install wemake-python-styleguide reorder-python-imports pip install black reorder-python-imports + pip install types-xmltodict + pip install types-requests - name: Analysing the code with pylint id: pylint continue-on-error: true diff --git a/testrail_api_reporter/engines/results_reporter.py b/testrail_api_reporter/engines/results_reporter.py index 7c06723..a1efdcb 100644 --- a/testrail_api_reporter/engines/results_reporter.py +++ b/testrail_api_reporter/engines/results_reporter.py @@ -128,7 +128,7 @@ def __ensure_automation_section(self, title="pytest", debug=None): return None first_run = False elif response["_links"]["next"] is not None: # pylint: disable=E1136 - offset = int(response["_links"]["next"].split("&offset=")[1].split("&")[0]) + offset = int(response["_links"]["next"].split("&offset=")[1].split("&")[0]) # pylint: disable=E1136 response = self.__api.sections.get_sections( project_id=self.__project_id, suite_id=self.__suite_id, offset=offset ) @@ -235,7 +235,7 @@ def __get_all_auto_cases(self, retries=3, debug=None): first_run = False retry = 0 elif response["_links"]["next"] is not None: # pylint: disable=E1136 - offset = int(response["_links"]["next"].split("&offset=")[1].split("&")[0]) + offset = int(response["_links"]["next"].split("&offset=")[1].split("&")[0]) # pylint: disable=E1136 try: response = self.__api.cases.get_cases( project_id=self.__project_id, suite_id=self.__suite_id, offset=offset @@ -484,7 +484,7 @@ def __search_for_run_by_name(self, title=None): break first_run = False elif response["_links"]["next"] is not None: # pylint: disable=E1136 - offset = int(response["_links"]["next"].split("&offset=")[1].split("&")[0]) + offset = int(response["_links"]["next"].split("&offset=")[1].split("&")[0]) # pylint: disable=E1136 response = self.__api.runs.get_runs( project_id=self.__project_id, suite_id=self.__suite_id, offset=offset )