From 1886a9f1baae0fe871ca6adf587efb402d82abb6 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 5 Dec 2026 02:47:37 +0100 Subject: [PATCH] EV-71: review fixes (T24 label, whitespace, N10) - test_ev69.py T24: label text restored; only the R1 flip and its comment. - test_ev69_fuzz.py: revert an accidental whitespace change. - test_ev71.py: drop the N10 check that could not fail (T17 ii carries N10). Co-Authored-By: Claude --- goodwe_controller/test_ev69.py | 2 +- goodwe_controller/test_ev69_fuzz.py | 2 +- goodwe_controller/test_ev71.py | 6 ++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/goodwe_controller/test_ev69.py b/goodwe_controller/test_ev69.py index cb3d78c..8d6353b 100644 --- a/goodwe_controller/test_ev69.py +++ b/goodwe_controller/test_ev69.py @@ -438,7 +438,7 @@ check(f"T19 [red on base]: mismatch at 900 ({rb.first_ms(895)})", r = ce(500, press_after_close2=True) E = close_times(r)[1] + 5 r = ce(500, press_after_close2=True, ev=[(E + 3, show(0.0))]) -check(f"T24: cap end with a press inside the sequence (prior_a kept), the " +check(f"T24: cap end with a press inside the sequence (prior_a cleared), the " f"charger then shows its own 0 A: no mismatch_since, no hold " f"({r.first_ms(E)}, {r.first_hold()}); the carry holds the 0 A " f"({r.carry[E + 4]})", diff --git a/goodwe_controller/test_ev69_fuzz.py b/goodwe_controller/test_ev69_fuzz.py index ea2aca4..ad04746 100644 --- a/goodwe_controller/test_ev69_fuzz.py +++ b/goodwe_controller/test_ev69_fuzz.py @@ -240,7 +240,7 @@ def fuzz_mixed(kind, seed): a for tt, a in new if a > 0] s["armed"] = True s["end_t"] = t - s["cap"] =kind == "solar" and w.cut_fails >= CM.MAX_TRIES + s["cap"] = kind == "solar" and w.cut_fails >= CM.MAX_TRIES s["cap_counted"] = False bump("end") if s["cap"]: diff --git a/goodwe_controller/test_ev71.py b/goodwe_controller/test_ev71.py index c54214d..b530c2c 100644 --- a/goodwe_controller/test_ev71.py +++ b/goodwe_controller/test_ev71.py @@ -599,10 +599,8 @@ for tag, r in (("C9", world()), ("F1a", world("f1a", press_at=None)), stray = [(t, v) for t in r.own for v in r.own[t] if v not in seen] check(f"N4 {tag}: every own value is one the writer wrote or had " f"({stray[:2]})", not stray) -# N10: the kept value is never persisted (T17 ii names the modules); it is no -# key of the writer's own state dicts either. -check("N10: the kept value is not part of the carry list or the log", - all(not hasattr(CM, n) for n in ("KEY_KEPT", "KEY_OWN_KEPT"))) +# N10 (the kept value is never persisted) is asserted by T17 (ii): no other +# module reads or writes `._kept` (red under M11), and a new writer starts empty. # N15: a kept value is never own after a hold (T6 reads it back from 260) r = world(after=lambda t: 16.0 if t < 260 else 12.0) check(f"N15: C9, a hold over 16 A (hold {r.first_hold()}), then the old 12 A "