Answer stability round 2: 0 🔴, 0 🟡 (0 misread); weigh each chain's first achieve goal 1 under an epic without one

This commit is contained in:
2026-11-18 17:03:26 +01:00
parent 74766df97a
commit a9074901ca
2 changed files with 8 additions and 6 deletions
+5 -3
View File
@@ -90,10 +90,12 @@ class RankedTest(unittest.TestCase):
for (_, value), expected in zip(found, (9.7 / TOTAL, 9.7 / TOTAL, 10 * 0.97**2 / TOTAL)):
self.assertAlmostEqual(value, expected)
def test_an_epic_without_an_achieve_goal_leaves_each_repos_weights_summing_to_1(self) -> None:
found = ranked([item(1, "repo 1 by 10")], "V", "1. **Maintain:** Leak no customer data.\n", {"billing-api": VOIDED})
def test_an_epic_without_an_achieve_goal_weighs_each_repos_first_achieve_goal_1(self) -> None:
two = dataclasses.replace(VOIDED, goals_text=VOIDED.goals_text + "2. **Achieve:** Small images.\n")
found = ranked([item(1, "repo 1 by 10"), item(2, "repo 1 by 10", repo="web"), item(3, "repo 2 by 10", repo="web")], "V", "1. **Maintain:** Leak no customer data.\n", {"billing-api": VOIDED, "web": two})
assert not isinstance(found, Failure), found
self.assertAlmostEqual(found[0][1], 10)
for (_, value), expected in zip(found, (10, 10, 9.7)):
self.assertAlmostEqual(value, expected)
def test_an_item_without_a_score_fails_naming_it(self) -> None:
unscored = EpicItem(dataclasses.replace(item(4, "").item, scores={}), None)