(self)
| 132 | @profile |
| 133 | @unittest.skipIf(not POPPLER_INSTALLED, "Poppler is not installed!") |
| 134 | def test_conversion_from_path_using_dir(self): |
| 135 | start_time = time.time() |
| 136 | with TemporaryDirectory() as path: |
| 137 | images_from_path = convert_from_path("./tests/test.pdf", output_folder=path) |
| 138 | self.assertTrue(len(images_from_path) == 1) |
| 139 | [im.close() for im in images_from_path] |
| 140 | print( |
| 141 | "test_conversion_from_path_using_dir: {} sec".format( |
| 142 | time.time() - start_time |
| 143 | ) |
| 144 | ) |
| 145 | |
| 146 | @profile |
| 147 | @unittest.skipIf(not POPPLER_INSTALLED, "Poppler is not installed!") |
nothing calls this directly
no test coverage detected