(self)
| 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!") |
nothing calls this directly
no test coverage detected