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

Method test_conversion_from_bytes_using_dir_241

tests.py:243–256  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

241 "Skipping this test on CI.",
242 )
243 def test_conversion_from_bytes_using_dir_241(self): # pragma: no cover
244 start_time = time.time()
245 with TemporaryDirectory() as path:
246 with open("./tests/test_241.pdf", "rb") as pdf_file:
247 images_from_bytes = convert_from_bytes(
248 pdf_file.read(), output_folder=path
249 )
250 self.assertTrue(len(images_from_bytes) == 241)
251 [im.close() for im in images_from_bytes]
252 print(
253 "test_conversion_from_bytes_using_dir_241: {} sec".format(
254 (time.time() - start_time) / 241.0
255 )
256 )
257
258 @profile
259 @unittest.skipIf(not POPPLER_INSTALLED, "Poppler is not installed!")

Callers

nothing calls this directly

Calls 1

convert_from_bytesFunction · 0.90

Tested by

no test coverage detected