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

Method test_conversion_from_path_using_dir

tests.py:134–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

132 @profile
133 @unittest.skipIf(not POPPLER_INSTALLED, "Poppler is not installed!")
134 def test_conversion_from_path_using_dir(self):
135 start_time = time.time()
136 with TemporaryDirectory() as path:
137 images_from_path = convert_from_path("./tests/test.pdf", output_folder=path)
138 self.assertTrue(len(images_from_path) == 1)
139 [im.close() for im in images_from_path]
140 print(
141 "test_conversion_from_path_using_dir: {} sec".format(
142 time.time() - start_time
143 )
144 )
145
146 @profile
147 @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