MCPcopy Create free account
hub / github.com/Belval/pdf2image / test_conversion_from_path_using_dir_241

Method test_conversion_from_path_using_dir_241

tests.py:264–276  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

262 "Skipping this test on CI.",
263 )
264 def test_conversion_from_path_using_dir_241(self): # pragma: no cover
265 start_time = time.time()
266 with TemporaryDirectory() as path:
267 images_from_path = convert_from_path(
268 "./tests/test_241.pdf", output_folder=path
269 )
270 self.assertTrue(len(images_from_path) == 241)
271 [im.close() for im in images_from_path]
272 print(
273 "test_conversion_from_path_using_dir_241: {} sec".format(
274 (time.time() - start_time) / 241.0
275 )
276 )
277
278 @profile
279 @unittest.skipIf(not POPPLER_INSTALLED, "Poppler is not installed!")

Callers

nothing calls this directly

Calls 1

convert_from_pathFunction · 0.90

Tested by

no test coverage detected