+ def testDirectTexifier(self) -> None:
+ texifier = VerifyingTexifier(
+ PandocTexifier('pandoc'), DirectTexifier())
+ buf = io.BytesIO()
+ spec = Spec(
+ self.url(),
+ self.fetcher(),
+ FakeImageStore(),
+ lambda x: x,
+ lambda x: None,
+ lambda x: x,
+ ContentOnlyLayout(texifier),
+ None,
+ buf,
+ lambda _: None)
+ paperdoorknob.process(spec)
+
+ def testPDF(self) -> None:
+ with open("test.tex", 'wb') as out:
+ spec = Spec(
+ self.url(),
+ self.fetcher(),
+ FakeImageStore(),
+ lambda x: x,
+ lambda x: None,
+ lambda x: x,
+ BesideIconLayout(PandocTexifier('pandoc'), 20),
+ None,
+ out,
+ lambda _: None)
+ paperdoorknob.process(spec)
+ subprocess.run(['pdflatex', 'test.tex'],
+ stdin=subprocess.DEVNULL, check=True)
+
+
+class TestProcessFromWebserver(BaseTestProcess, unittest.TestCase):