From e0eb78bfd69be73c77d27967bca45ac132aa9976 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 25 Sep 2026 00:33:43 +0200 Subject: [PATCH] Make the citation message a resolving example --- bin/test_citations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/test_citations.py b/bin/test_citations.py index ae00ea66..4da16446 100644 --- a/bin/test_citations.py +++ b/bin/test_citations.py @@ -18,7 +18,7 @@ class Citations(unittest.TestCase): leads = headings | set(LEAD.findall(text)) tracked = subprocess.run(["git", "ls-files", "-z"], capture_output=True, check=True, cwd=ROOT, text=True).stdout.split("\0") texts = [(path, (ROOT / path).read_text()) for path in filter(None, tracked)] - self.assertEqual([f"{path}: {stray}" for path, text in texts for stray in STRAY.findall(text)], [], 'a citation is `CLAUDE.md` then → "Heading"') + self.assertEqual([f"{path}: {stray}" for path, text in texts for stray in STRAY.findall(text)], [], 'spell a citation `CLAUDE.md` → "Vocabulary"') cited = [(path, NAME.findall(run)) for path, text in texts for run in CITATION.findall(text)] self.assertTrue(cited) self.assertEqual([f"{path}: {names}" for path, names in cited if names[0] not in headings or set(names[1:]) - leads], [])