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) <noreply@anthropic.com>
This commit is contained in:
parent
28fc7a8cbd
commit
9c3695df6d
@ -113,7 +113,11 @@ class TestSetStatus:
|
|||||||
mod.set_status("something")
|
mod.set_status("something")
|
||||||
|
|
||||||
captured = capsys.readouterr()
|
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
|
assert "platform unreachable" in captured.err
|
||||||
|
|
||||||
def test_set_status_heartbeat_fields_are_correct(self, monkeypatch):
|
def test_set_status_heartbeat_fields_are_correct(self, monkeypatch):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user