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

Method test_conversion_from_path_using_dir_14

tests.py:190–202  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

188 @profile
189 @unittest.skipIf(not POPPLER_INSTALLED, "Poppler is not installed!")
190 def test_conversion_from_path_using_dir_14(self):
191 start_time = time.time()
192 with TemporaryDirectory() as path:
193 images_from_path = convert_from_path(
194 "./tests/test_14.pdf", output_folder=path
195 )
196 self.assertTrue(len(images_from_path) == 14)
197 [im.close() for im in images_from_path]
198 print(
199 "test_conversion_from_path_using_dir_14: {} sec".format(
200 (time.time() - start_time) / 14.0
201 )
202 )
203
204 @profile
205 @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