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

Method test_multithread_conversion

tests.py:1671–1679  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1669 @profile
1670 @unittest.skipIf(not POPPLER_INSTALLED, "Poppler is not installed")
1671 def test_multithread_conversion(self):
1672 start_time = time.time()
1673 files = [
1674 "./tests/test.pdf",
1675 ] * 50
1676 with Pool(10) as p:
1677 res = p.map(convert_from_path, files)
1678 self.assertTrue(len(res) == 50)
1679 print("test_multithread_conversion: {} sec".format(time.time() - start_time))
1680
1681 @profile
1682 @unittest.skipIf(not POPPLER_INSTALLED, "Poppler is not installed!")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected