diff --git a/goodwe_controller/test_rehearse.py b/goodwe_controller/test_rehearse.py index e68d0c6..7ae1ec2 100644 --- a/goodwe_controller/test_rehearse.py +++ b/goodwe_controller/test_rehearse.py @@ -493,7 +493,13 @@ for mid, control, what, edits, must_say in MUTATIONS: seen = [] for line in out.splitlines(): text = line.strip() - if text.startswith("⚠️ ") and re.match(r"⚠️ [A-Z][A-Z -]+[A-Z()]:", text): + # ⚠️ `_` IS IN THE CLASS. Without it `UNIQUE_ID DRIFT:` does not match + # its own finding kind, and M7 - the mutation that renames `mqtt.BASE` + # - printed its verdict with NO evidence under it. A filter that + # silently drops the very finding the mutation exists to produce is a + # small version of the same defect this file is about. + if text.startswith("⚠️ ") and re.match(r"⚠️ [A-Z][A-Z _-]+[A-Z()]:", + text): if text not in seen: seen.append(text) for text in seen: