Keep the reviewer-context test clear of the citation check
This commit is contained in:
@@ -27,7 +27,8 @@ class ReviewerContext(unittest.TestCase):
|
|||||||
(self.home / ".claude" / "CLAUDE.md").write_text("## Prose\n\nWrite short.\n")
|
(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.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.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):
|
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("## ")]
|
headings = [line[3:] for line in (REPO / "CLAUDE.md").read_text().splitlines() if line.startswith("## ")]
|
||||||
|
|||||||
Reference in New Issue
Block a user