Answer product-owner round 1: 0 🔴, 3 🟡 (0 misread); name the issue to block by in the worker's prompt, and link the issue as Jira creates it

This commit is contained in:
Lilleman
2026-11-19 16:06:42 +01:00
parent b2630b8148
commit 5d9d880f44
8 changed files with 33 additions and 36 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ class FilingAFinding(FindingsTest):
self.assertEqual((code, out, filed.parent, filed.blockers), (0, f"Filed {filed.key} under ABC-20 in the epic ABC-12. It is blocked by ABC-21.\n", "ABC-20", ("ABC-21",)))
def test_refuses_a_blocker_or_parent_outside_the_epic(self) -> None:
for argv, reason in ((["--blocked-by", "ZZZ-1"], "ZZZ-1 is neither a child issue of the epic ABC-12 nor a sub-task of one, so nothing can be filed blocked by it"), (["--parent", "ZZZ-1"], "ZZZ-1 is neither the epic ABC-12 nor one of its child issues, so nothing can be filed under it")):
for argv, reason in ((["--blocked-by", "ZZZ-1"], "ZZZ-1 is neither a child issue of the epic ABC-12 nor a sub-task of one, so it cannot block a new issue"), (["--parent", "ZZZ-1"], "ZZZ-1 is neither the epic ABC-12 nor one of its child issues, so nothing can be filed under it")):
with self.subTest(argv=argv):
code, out, err, _ = self.run_with(["ABC-12", "--file", "Retry", "--label", "repo:api", *argv])
self.assertEqual((code, out, err, len(self.store.issues)), (1, "", f"cannot file the finding in the epic ABC-12: {reason}\n", 2))