- def testFetch(self) -> None:
- paperdoorknob.fetch(f"http://localhost:{TEST_PORT}", TIMEOUT)
+ def testPDF(self) -> None:
+ with DirectFetcher(TIMEOUT) as f:
+ with open("test.tex", 'wb') as out:
+ spec = Spec(
+ f"http://localhost:{self._port}",
+ f,
+ PandocTexifier('pandoc'),
+ out)
+ paperdoorknob.process(spec)
+ subprocess.run(['pdflatex', 'test.tex'],
+ stdin=subprocess.DEVNULL, check=True)