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

Method test_conversion_from_path_using_transparent

tests.py:937–947  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

935 @profile
936 @unittest.skipIf(not POPPLER_INSTALLED, "Poppler is not installed!")
937 def test_conversion_from_path_using_transparent(self):
938 start_time = time.time()
939 images_from_path = convert_from_path(
940 "./tests/test.pdf", transparent=True, fmt="png"
941 )
942 self.assertTrue(len(images_from_path) == 1)
943 print(
944 "test_conversion_from_path_using_transparent: {} sec".format(
945 time.time() - start_time
946 )
947 )
948
949 @profile
950 @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