From 9c3695df6d4f68ecb1e6dee8b52b478477a38b47 Mon Sep 17 00:00:00 2001 From: Hongming Wang Date: Mon, 27 Apr 2026 11:48:05 -0700 Subject: [PATCH] test(runtime): update molecule_ai_status test for renamed error prefix Pre-existing test_set_status_exception_prints_to_stderr asserted on the legacy "molecule-monorepo-status: failed to update" prefix string. The prior commit renamed it to "molecule_ai_status: failed to update" so the printed label matches the canonical module-form invocation (`python3 -m molecule_runtime.molecule_ai_status`) instead of a shell alias that only ever existed in the dev-only base image. Updating the expected substring in lockstep. Co-Authored-By: Claude Opus 4.7 (1M context) --- workspace/tests/test_molecule_ai_status.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/workspace/tests/test_molecule_ai_status.py b/workspace/tests/test_molecule_ai_status.py index 9c3f8d80..cbddd816 100644 --- a/workspace/tests/test_molecule_ai_status.py +++ b/workspace/tests/test_molecule_ai_status.py @@ -113,7 +113,11 @@ class TestSetStatus: mod.set_status("something") captured = capsys.readouterr() - assert "molecule-monorepo-status: failed to update" in captured.err + # Error prefix matches the canonical module-form invocation; the + # legacy molecule-monorepo-status shell alias only existed in the + # dev-only workspace/Dockerfile base image, never in shipped + # template images, so the prefix was misleading. + assert "molecule_ai_status: failed to update" in captured.err assert "platform unreachable" in captured.err def test_set_status_heartbeat_fields_are_correct(self, monkeypatch):