Keep the reviewer-context test clear of the citation check

This commit is contained in:
2026-11-12 06:05:54 +01:00
parent 4adcadcddb
commit 35911bde8f
+2 -1
View File
@@ -27,7 +27,8 @@ class ReviewerContext(unittest.TestCase):
(self.home / ".claude" / "CLAUDE.md").write_text("## Prose\n\nWrite short.\n")
self.assertEqual(reviewer_context(self.home), Failure(f"{self.home / '.claude' / 'CLAUDE.md'} holds no section Shared goal, Vocabulary"))
(self.home / ".claude" / "CLAUDE.md").unlink()
self.assertIn(f"could not read {self.home / '.claude' / 'CLAUDE.md'}: ", reviewer_context(self.home).reason)
path = self.home / ".claude" / "CLAUDE.md"
self.assertIn(f"could not read {path}: ", reviewer_context(self.home).reason)
def test_the_repos_claude_md_holds_each_section(self):
headings = [line[3:] for line in (REPO / "CLAUDE.md").read_text().splitlines() if line.startswith("## ")]