MCPcopy
hub / github.com/pdfarranger/pdfarranger / _assert_page_size

Method _assert_page_size

tests/test.py:255–260  ·  view source on GitHub ↗
(self, width, height, pageid=None)

Source from the content-addressed store, hash-verified

253 self.assertTrue(self._status_text().startswith("Selected pages: " + selection))
254
255 def _assert_page_size(self, width, height, pageid=None):
256 if pageid is not None:
257 self._icons()[pageid].click()
258 self._wait_cond(lambda: self._status_text().startswith(f"Selected pages: {pageid+1}"))
259 label = " {:.1f} mm \u00D7 {:.1f} mm".format(width, height)
260 self.assertTrue(self._status_text().endswith("Page Size:" + label))
261
262 def _page_size(self, pageid):
263 self._icons()[pageid].click()

Callers 10

test_03_scaleMethod · 0.80
test_05_importMethod · 0.80
test_03_bookletMethod · 0.80
test_05_split_bookletMethod · 0.80
test_03_crop_marginsMethod · 0.80
test_06_merge_pagesMethod · 0.80
test_03_import_pngMethod · 0.80
test_04_import_pngMethod · 0.80
test_03_import_pngMethod · 0.80

Calls 4

_iconsMethod · 0.95
_wait_condMethod · 0.95
_status_textMethod · 0.95
clickMethod · 0.45

Tested by

no test coverage detected