diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5cfb64c..c2edd20 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/tests/utils/test_reporter_utils_format_error.py b/tests/utils/test_reporter_utils_format_error.py index 3cfae21..1ef4467 100644 --- a/tests/utils/test_reporter_utils_format_error.py +++ b/tests/utils/test_reporter_utils_format_error.py @@ -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(): diff --git a/tests/utils/test_reporter_utils_upload_image.py b/tests/utils/test_reporter_utils_upload_image.py index 2f3f299..2a87e56 100644 --- a/tests/utils/test_reporter_utils_upload_image.py +++ b/tests/utils/test_reporter_utils_upload_image.py @@ -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"))