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