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

Method test_conversion_from_bytes

tests.py:100–105  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98 @profile
99 @unittest.skipIf(not POPPLER_INSTALLED, "Poppler is not installed!")
100 def test_conversion_from_bytes(self):
101 start_time = time.time()
102 with open("./tests/test.pdf", "rb") as pdf_file:
103 images_from_bytes = convert_from_bytes(pdf_file.read())
104 self.assertTrue(len(images_from_bytes) == 1)
105 print("test_conversion_from_bytes: {} sec".format(time.time() - start_time))
106
107 @profile
108 @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