From bb290a8d3c858c1bc9d2292848e3f9a712dab52f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Heinz-Alexander=20F=C3=BCtterer?= <35225576+afuetterer@users.noreply.github.com> Date: Thu, 12 Mar 2026 13:41:20 +0100 Subject: [PATCH] test: add tests for tika.pdf --- tests/test_pdf.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/test_pdf.py diff --git a/tests/test_pdf.py b/tests/test_pdf.py new file mode 100644 index 0000000..cf71009 --- /dev/null +++ b/tests/test_pdf.py @@ -0,0 +1,11 @@ +from pathlib import Path + +from tika import pdf + + +TEST_FILE_PATH = Path(__file__).parent / "files" / "rwservlet.pdf" + + +def test_local_path(): + text_pages = pdf.text_from_pdf_pages(str(TEST_FILE_PATH)) + assert isinstance(text_pages, list)