From 999fca6f177d5f6e7e966c7d16b66a79c5b68752 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Thu, 19 Nov 2026 04:23:53 +0100 Subject: [PATCH] Pin planning's progress line and the repo a goals failure names --- bin/do_epic/test_planning.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/do_epic/test_planning.py b/bin/do_epic/test_planning.py index cca6c573..33d4655e 100644 --- a/bin/do_epic/test_planning.py +++ b/bin/do_epic/test_planning.py @@ -60,6 +60,7 @@ class Planning(DoEpicTest): found, store, out = self.plan(fake) self.assertEqual(found, [issue("ABC-20", "repo:api")]) self.assertEqual(self.labels(store), {"ABC-20": ("repo:api",)}) + self.assertIn("planning ABC-20\n", out) self.assertIn("ABC-20 is labelled repo:api\n", out) for args, _ in fake.made("claude"): self.assertEqual(args[args.index("--model") + 1], "claude-opus-5-5") @@ -216,12 +217,12 @@ class Planning(DoEpicTest): def test_fails_naming_the_repo_whose_goals_cannot_be_read(self) -> None: checkout = self.home / "code" / "api" configured(self, checkout, home=self.home) - (checkout / "README.md").write_text("# api\n", encoding="utf-8") + (checkout / "README.md").unlink(missing_ok=True) self.description = RANKED self.issues = [scored("ABC-20", "repo 1 by 9", "repo:api"), scored("ABC-21", "epic 1 by 9", "do-epic-claude")] found = self.plan(FakeEffects())[0] assert isinstance(found, Failure), found - self.assertTrue(found.reason.startswith("api: "), found.reason) + self.assertRegex(found.reason, r"^api: .*missing or empty") def test_ranks_a_security_issue_first(self) -> None: self.description = RANKED