X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/19ed28f37b59e480cebe8f122e07ce18ce536db8..0668adb72b24796c0c017a3091042a4b2574e082:/glowfic_test.py?ds=sidebyside diff --git a/glowfic_test.py b/glowfic_test.py index 52d6f86..898aafb 100644 --- a/glowfic_test.py +++ b/glowfic_test.py @@ -16,8 +16,9 @@ from texify import PandocTexifier def spec_for_testing(html: bytes) -> Spec: - return Spec('test', - FakeFetcher({'test?view=flat': html}), + return Spec('https://fake/test', + FakeFetcher({'https://fake/test': html, + 'https://fake/test?view=flat': html}), FakeImageStore(), lambda x: x, lambda x: None, @@ -87,6 +88,21 @@ class TestMakeChunk(unittest.TestCase): self.assertEqual( PandocTexifier("pandoc").texify(c.character), b'{Keltham}\n') + def testMinimal(self) -> None: + t = Thread(spec_for_testing(b''' +
+