Skip to content

Commit

Permalink
Linters fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wwakabobik committed Sep 14, 2023
1 parent bf231d0 commit e1bb687
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions testrail_api_reporter/engines/results_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
)
Expand Down

0 comments on commit e1bb687

Please sign in to comment.