Skip to content

Commit

Permalink
TST: Regression test for #177 (#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma authored Apr 21, 2022
1 parent db1e458 commit 80c59c9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Binary file added Resources/selenium-PyPDF2-issue-177.pdf
Binary file not shown.
9 changes: 9 additions & 0 deletions Tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
RESOURCE_ROOT = os.path.join(PROJECT_ROOT, "Resources")


@pytest.mark.parametrize(
"src,num_pages", [("selenium-PyPDF2-issue-177.pdf", 1), ("pdflatex-outline.pdf", 4)]
)
def test_get_num_pages(src, num_pages):
src = os.path.join(RESOURCE_ROOT, src)
reader = PdfFileReader(src)
assert reader.getNumPages() == num_pages


@pytest.mark.parametrize(
"pdf_path, expected",
[
Expand Down

0 comments on commit 80c59c9

Please sign in to comment.