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

Method test_non_empty_output_folder

tests.py:552–564  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

550 @profile
551 @unittest.skipIf(not POPPLER_INSTALLED, "Poppler is not installed!")
552 def test_non_empty_output_folder(self):
553 start_time = time.time()
554 images_from_path = convert_from_path(
555 "./tests/test.pdf", output_folder="./tests/"
556 )
557 self.assertTrue(len(images_from_path) == 1)
558 [im.close() for im in images_from_path]
559 [os.remove(im.filename) for im in images_from_path]
560 print(
561 "test_non_empty_output_folder: {} sec".format(
562 (time.time() - start_time) / 14.0
563 )
564 )
565
566 ## Test format that starts with a dot
567

Callers

nothing calls this directly

Calls 1

convert_from_pathFunction · 0.90

Tested by

no test coverage detected