Skip to content

Commit 4aa051b

Browse files
committed
Add test for pdfinfo first-last page
1 parent 9191787 commit 4aa051b

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

tests.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,6 +1749,19 @@ def test_timeout_convert_from_path_241(self):
17491749
)
17501750
)
17511751

1752+
@profile
1753+
def test_pdfinfo_first_and_last_page(self):
1754+
start_time = time.time()
1755+
info_first_path = pdfinfo_from_path("./tests/test_14.pdf", first_page=1, last_page=2)
1756+
1757+
self.assertIn("Page 1 rot", info_first_path)
1758+
1759+
print(
1760+
"test_pdfinfo_first_and_last_page: {} sec".format(
1761+
time.time() - start_time
1762+
)
1763+
)
1764+
17521765

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

0 commit comments

Comments
 (0)