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
@@ -1286,6 +1286,10 @@ class RouteSources(unittest.TestCase):
config.write_text(config.read_text().replace('"checkout:todo.md"', '"folder:todo.md"'))
(folder / "todo.md").write_text(TODO)
self.assertEqual(chunk_start.fetched_todo(loop), TODO)
unread = Failure("no git")
standing = a_loop(FakeEffects(git=["origin\n", "origin/main\n", unread, unread, unread, unread]).effects(), root=root, paths=paths.paths_from(folder.parents[1]))
held = chunk_start.fetched_plan(standing)
self.assertEqual((held.todo, held.cut.todos_since, held.cut.changelog), (TODO, [], ""), "the plan as it stands, whatever git answers")
config.unlink()
with contextlib.redirect_stderr(io.StringIO()) as stderr:
self.assertIn("no config names the checkout", chunk_start.fetched_todo(loop).reason)