From 49da0a1c3bf01b2548cd33e9f3c0d7ffe6b0a6ba Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 24 Sep 2026 23:54:36 +0200 Subject: [PATCH] Pin a #-prefixed prose line as body in the sections test --- bin/test_loop_claude.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/test_loop_claude.py b/bin/test_loop_claude.py index 7f9e1016..9c22643f 100644 --- a/bin/test_loop_claude.py +++ b/bin/test_loop_claude.py @@ -27,8 +27,8 @@ def human(content): class Sections(unittest.TestCase): def test_keeps_only_headed_sections_with_a_body(self): - text = "# Title\n\nintro\n\n## Goals\n\n1. one\n```sh\n# not a heading\n```\n### Later\n2. two\n\n## Empty\n\n## Audience\nme\n# Appendix\nnot audience\n" - self.assertEqual(loop.sections(text), {"Goals": "1. one\n```sh\n# not a heading\n```\n### Later\n2. two", "Audience": "me"}) + text = "# Title\n\nintro\n\n## Goals\n\n1. one\n```sh\n# not a heading\n```\n### Later\n2. two\n#1 priority\n\n## Empty\n\n## Audience\nme\n# Appendix\nnot audience\n" + self.assertEqual(loop.sections(text), {"Goals": "1. one\n```sh\n# not a heading\n```\n### Later\n2. two\n#1 priority", "Audience": "me"}) class Render(unittest.TestCase):