Skip to content

Commit

Permalink
Fix linters
Browse files Browse the repository at this point in the history
  • Loading branch information
wwakabobik committed Aug 19, 2024
1 parent 9c34087 commit 862ab68
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ jobs:
run: echo "PYTHONPATH=$PYTHONPATH:$(pwd)/testrail_api_reporter:." >> $GITHUB_ENV
- name: Execute tests
id: tests
env:
FREEIMAGEHOST_API_KEY: ${{ secrets.FREEIMAGEHOST_API_KEY }}
run: pytest tests -n=auto --cov=testrail_api_reporter --cov-report=term --cov-report=xml:coverage.xml --cov-fail-under=95
2 changes: 1 addition & 1 deletion tests/utils/test_reporter_utils_format_error.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Tests for the reporter_utils module, function 'format_error'"""

from testrail_api_reporter.utils.reporter_utils import format_error # pylint: disable=import-error,no-name-in-module
from .testrail_api_reporter.utils.reporter_utils import format_error # pylint: disable=import-error,no-name-in-module


def test_format_error_single_string():
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/test_reporter_utils_upload_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from faker import Faker
from pytest import raises as pytest_raises

from testrail_api_reporter.utils.reporter_utils import upload_image # pylint: disable=import-error,no-name-in-module
from .testrail_api_reporter.utils.reporter_utils import upload_image # pylint: disable=import-error,no-name-in-module


test_filename = choice((f"{getcwd()}/tests/assets/test_image.png", f"{getcwd()}/tests/assets/test_image.jpeg"))
Expand Down

0 comments on commit 862ab68

Please sign in to comment.