Test the configured plan and records in needs-scoring-run, the loop's plan, the standing, the hook's breach and the routing figures

This commit is contained in:
2026-11-13 01:09:44 +01:00
parent 2d8b4bb8da
commit c92d2cccca
6 changed files with 52 additions and 1 deletions
+4
View File
@@ -898,6 +898,10 @@ class TodoRankCheck(unittest.TestCase):
def test_a_checkout_of_the_hooks_repo_runs_its_own_rank_todo(self):
checkout = self.changed_plan(f"{self.folder}/clone", self.STUB)
self.assertEqual(self.details(checkout), [f"own script checked {checkout}/todo.md"])
top = str(pathlib.Path(checkout).resolve())
self.assertEqual([(breach.rule, breach.directory) for breach in todo_breaches(checkout, pathlib.Path(self.own))], [("todo-rank-check", top)])
self.config.unlink()
self.assertEqual([(breach.rule, breach.directory) for breach in todo_breaches(checkout, pathlib.Path(self.own))], [("todo-rank-check", top)], "a todo.md with no config")
def test_its_own_rank_todo_passing_passes(self):
self.assertEqual(self.details(self.changed_plan(f"{self.folder}/clone", "")), [])