X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/79631507ecb69945b7cedb10c3aaed4b8dd788b0..f1dec72014657ab33bffa8f68064d85cc862ea65:/paperdoorknob_test.py?ds=sidebyside diff --git a/paperdoorknob_test.py b/paperdoorknob_test.py index 453f5a6..4cead97 100644 --- a/paperdoorknob_test.py +++ b/paperdoorknob_test.py @@ -11,7 +11,7 @@ import subprocess import paperdoorknob from testing.fakeserver import FakeGlowficServer from fetch import DirectFetcher -from texify import PandocTexifier +from texify import DirectTexifier, PandocTexifier, VerifyingTexifier TIMEOUT = 8 @@ -44,6 +44,14 @@ Pretty sure. \\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: