From 340100b5bbe4a79ce8dc37fc8a0f43d891c8771e Mon Sep 17 00:00:00 2001 From: christian Date: Tue, 20 Oct 2026 10:10:51 -0400 Subject: [PATCH] Wired-MIDI test: one check, whether or not config.json already has it Co-Authored-By: Claude Opus 5.5 --- tests/test_status_panel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_status_panel.py b/tests/test_status_panel.py index ae64f12..c222fd3 100644 --- a/tests/test_status_panel.py +++ b/tests/test_status_panel.py @@ -474,7 +474,8 @@ class TestChecks(unittest.TestCase): self.snap.midi["NA Ingest"]["peers"].pop() self.assertEqual([r.level for _, r in sp.check_midi_wired(chk, self.snap, self.ctx)], [sp.OK]) cfg = json.loads(json.dumps(CONFIG)) - next(t for t in cfg["tiles"] if t["id"] == "midi")["checks"].append(dict(chk)) + midi = next(t for t in cfg["tiles"] if t["id"] == "midi") + midi["checks"] = [c for c in midi["checks"] if c["type"] != "midi_wired"] + [dict(chk)] # one, wherever it came from import schema self.assertEqual([e for e in schema.validate(cfg)[0] if "wired" in e], []) next(t for t in cfg["tiles"] if t["id"] == "midi")["checks"][-1]["nets"] = ["wifi"]