(self)
| 188 | @profile |
| 189 | @unittest.skipIf(not POPPLER_INSTALLED, "Poppler is not installed!") |
| 190 | def test_conversion_from_path_using_dir_14(self): |
| 191 | start_time = time.time() |
| 192 | with TemporaryDirectory() as path: |
| 193 | images_from_path = convert_from_path( |
| 194 | "./tests/test_14.pdf", output_folder=path |
| 195 | ) |
| 196 | self.assertTrue(len(images_from_path) == 14) |
| 197 | [im.close() for im in images_from_path] |
| 198 | print( |
| 199 | "test_conversion_from_path_using_dir_14: {} sec".format( |
| 200 | (time.time() - start_time) / 14.0 |
| 201 | ) |
| 202 | ) |
| 203 | |
| 204 | @profile |
| 205 | @unittest.skipIf(not POPPLER_INSTALLED, "Poppler is not installed!") |
nothing calls this directly
no test coverage detected