Skip to content

Commit

Permalink
Add test for pdfinfo first-last page
Browse files Browse the repository at this point in the history
  • Loading branch information
Belval committed Jan 7, 2024
1 parent 9191787 commit 4aa051b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1749,6 +1749,19 @@ def test_timeout_convert_from_path_241(self):
)
)

@profile
def test_pdfinfo_first_and_last_page(self):
start_time = time.time()
info_first_path = pdfinfo_from_path("./tests/test_14.pdf", first_page=1, last_page=2)

self.assertIn("Page 1 rot", info_first_path)

print(
"test_pdfinfo_first_and_last_page: {} sec".format(
time.time() - start_time
)
)


if __name__ == "__main__":
unittest.main()

0 comments on commit 4aa051b

Please sign in to comment.