From 0668adb72b24796c0c017a3091042a4b2574e082 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Thu, 25 Jan 2024 22:25:28 -0800 Subject: [PATCH] Test bare chunks --- glowfic_test.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/glowfic_test.py b/glowfic_test.py index bd26e3c..898aafb 100644 --- a/glowfic_test.py +++ b/glowfic_test.py @@ -88,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''' + +
+
Just content
+
+ ''')) + c = makeChunk(next(iter(t.chunkDOMs())), FakeImageStore()) + self.assertIsNone(c.icon) + self.assertIsNone(c.character) + self.assertIsNone(c.screen_name) + self.assertIsNone(c.author) + self.assertEqual(str(c.content), + '
Just content
') + class TestThread(unittest.TestCase): -- 2.44.1