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)