diff --git a/.github/workflows/python-lint-test.yml b/.github/workflows/python-lint-test.yml index a8efb92..ecb87a2 100644 --- a/.github/workflows/python-lint-test.yml +++ b/.github/workflows/python-lint-test.yml @@ -10,7 +10,7 @@ permissions: contents: read jobs: - build: + testing: runs-on: ubuntu-latest diff --git a/tests/test_remove.py b/tests/test_remove.py index 88cfb9d..3daa801 100644 --- a/tests/test_remove.py +++ b/tests/test_remove.py @@ -1,15 +1,15 @@ import pytest -import importlib import sys from pathlib import Path TESTS_DIR = Path(__file__).parent +sys.path.insert(0, str(TESTS_DIR.parent)) + from remove import removeWatermark -sys.path.insert(0, str(TESTS_DIR.parent)) @pytest.mark.parametrize("ifname", [TESTS_DIR / "lorem.pdf"]) def test_removal(ifname): ofname = TESTS_DIR / ("%s.out.pdf" % (Path(ifname).stem,)) - removeWatermark(str(ifname), str(ofname)) \ No newline at end of file + removeWatermark(str(ifname), str(ofname))