Answer principles round 1: 2 🔴, 4 🟡; count the principles pass as a pass, and state the audit's cost and its round scope

This commit is contained in:
2026-10-16 05:11:14 +02:00
parent fc4d63c041
commit e43a4923b5
6 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
import re
CAP = 3
PASSES = ("architecture", "full scan", "security", "overrides", "stability", "product-owner", "prose")
PASSES = ("architecture", "principles", "full scan", "security", "overrides", "stability", "product-owner", "prose")
ROUND = re.compile(r"^Answer (.+?) round ([0-9]+):", re.IGNORECASE)
# What follows a round title's colon: the round's 🔴 and 🟡 counts, then `;` and its summary, if any.
FINDINGS = re.compile(r" ([0-9]+) 🔴, ([0-9]+) 🟡(?:;|$)")
+3
View File
@@ -18,6 +18,9 @@ class Rounds(unittest.TestCase):
def test_counts_a_repeated_round_number_as_a_round_of_its_own(self):
self.assertEqual(round_counts(["Answer stability round 3: x", "Answer stability round 3: y", "Answer stability round 2: z", "Answer stability round 1: w"])["stability"], 4)
def test_lists_the_principles_pass_before_its_first_round(self):
self.assertIn("principles", round_counts([]))
class RoundFindings(unittest.TestCase):
def test_sums_the_counts_each_round_title_opens_with(self):