Pin planning's progress line and the repo a goals failure names

This commit is contained in:
2026-11-19 04:23:53 +01:00
parent 94b34e509f
commit 999fca6f17
+3 -2
View File
@@ -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