From c3f823a76bba6bacff1583f0c0dfa56625974a0c Mon Sep 17 00:00:00 2001 From: Chenxing Luo Date: Sat, 23 Sep 2023 14:07:19 -0400 Subject: [PATCH] Fix tests --- .github/workflows/python-lint-test.yml | 2 +- tests/test_remove.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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))