import paperdoorknob
from testing.fakeserver import FakeGlowficServer
from fetch import DirectFetcher
-from texify import PandocTexifier
+from texify import DirectTexifier, PandocTexifier, VerifyingTexifier
TIMEOUT = 8
\\end{document}
''')
+ def testDirectTexifier(self) -> None:
+ texifier = VerifyingTexifier(
+ PandocTexifier('pandoc'), DirectTexifier())
+ with DirectFetcher(TIMEOUT) as f:
+ buf = io.BytesIO()
+ paperdoorknob.process(
+ f"http://localhost:{self._port}", f, texifier, buf)
+
def testPDF(self) -> None:
texifier = PandocTexifier('pandoc')
with DirectFetcher(TIMEOUT) as f: