Skip to content

Commit

Permalink
Speed up test_ca_warn_report:test_objects
Browse files Browse the repository at this point in the history
The same goals can be acheived by just testing the first page, instead
of the entire PDF, trimming approximately 20% off the total test suite's
execution time, although YMMV.
  • Loading branch information
jsvine committed Aug 29, 2020
1 parent 917467a commit 6233bbd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_ca_warn_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ def test_page_limiting(self):
assert pdf.pages[1].page_number == 3

def test_objects(self):
assert len(self.pdf.chars)
assert len(self.pdf.rects)
assert len(self.pdf.images)
p = self.pdf.pages[0]
assert len(p.chars)
assert len(p.rects)
assert len(p.images)

def test_parse(self):

Expand Down

0 comments on commit 6233bbd

Please sign in to comment.