Skip to content

Commit 7a9c3a3

Browse files
Merge pull request chrismattmann#462 from afuetterer/test-pdf
test: add tests for `tika.pdf`
2 parents d671684 + 11c2e6a commit 7a9c3a3

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/test_pdf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from pathlib import Path
2+
3+
from tika import pdf
4+
5+
6+
TEST_FILE_PATH = Path(__file__).parent / "files" / "rwservlet.pdf"
7+
8+
9+
def test_local_path():
10+
text_pages = pdf.text_from_pdf_pages(str(TEST_FILE_PATH))
11+
assert isinstance(text_pages, list)

0 commit comments

Comments
 (0)