From cf07f6f99bedc95bac1eb9f67f7316af5b979e59 Mon Sep 17 00:00:00 2001 From: ems-agent Date: Mon, 30 Nov 2026 01:47:38 +0100 Subject: [PATCH] EV-54 tests: T26 asserts the first write after the lift is the step-up; T8 checks named T8 Mutant M18 (the drop leaves taken False) re-sent the standing read-back at the lift and T26 missed it; the T8 checks were filed under T2/T5 by name. Test-only. Co-Authored-By: Claude --- goodwe_controller/test_ev54.py | 2 +- goodwe_controller/test_ev54_drop.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/goodwe_controller/test_ev54.py b/goodwe_controller/test_ev54.py index 61f43f3..ef72563 100644 --- a/goodwe_controller/test_ev54.py +++ b/goodwe_controller/test_ev54.py @@ -249,7 +249,7 @@ for name, r, t1 in (("T2", T2, 1800), ("T5", T5R["both at 10 %"], 3600)): amb = amber(r, (nth(ts, 2) if present(nth(ts, 2)) else 1e9) + 1, 1800) want_amb = list(range(int(nth(ts, 2)) + 1, 1800)) \ if present(nth(ts, 2)) else [None] - check(f"{name} T8: at the 3rd refused try ({nth(ts, 2)}) one WARNING " + check(f"T8 [{name} run]: at the 3rd refused try ({nth(ts, 2)}) one WARNING " f"'{Q3_TEXT}' ({q3w}) over the run (DEBUG after: " f"{[(t, lv) for t, lv, _m in q3 if lv != 'WARNING'][:3]}); no " f"'until you press Solar' ({old[:2]}); the amber row from the 3rd " diff --git a/goodwe_controller/test_ev54_drop.py b/goodwe_controller/test_ev54_drop.py index ab0b1dd..de37d0f 100644 --- a/goodwe_controller/test_ev54_drop.py +++ b/goodwe_controller/test_ev54_drop.py @@ -254,12 +254,14 @@ paused = [x["t"] for x in rows(r, tl or 1e9, (tl or 1e9) + 30) z = [(t, ok) for t, a, ok, _w in writes(r, 1081, 2700) if a == 0.0] up = [(t, a, why) for t, a, ok, why in writes(r, (tl or 1e9) + 30, (tl or 1e9) + 61) if a > 10.0] +nxt = first((t, a, why) for t, a, _ok, why in writes(r, 1081, 2700)) check(f"T26 (G2): the lift at {tl} (1370+-2): the drop {d} (plan 10, not " f"paused {paused[:2]}, so '0 A first' does not clear its start count); " - f"no 0 A after the 3rd try ({z[:2]}); a step-up > 10 A, Solar, in " - f"[t_lift+30, t_lift+60] ({up[:1]})", + f"no 0 A after the 3rd try ({z[:2]}); then the first write {nxt} is a " + f"step-up > 10 A, Solar, in [t_lift+30, t_lift+60] ({up[:1]})", near(tl, 1370, 2, 2) and d is not None and not paused and not z - and bool(up) and up[0][1] <= 16.0 and up[0][2] == "Solar") + and bool(up) and up[0][1] <= 16.0 and up[0][2] == "Solar" + and present(nxt) and nxt == up[0]) never54("T26", r) for tag, H in (("6 A", 12500.0), ("0 A", 16000.0)):