From 6bf9f924620654efa8d7e6592f6650a9e4b127c6 Mon Sep 17 00:00:00 2001 From: Godopu Date: Tue, 6 Oct 2026 05:08:35 +0000 Subject: [PATCH] test(issue-17): item 4 - the frozen-mapping test imports the wrapper module directly (it has no scripts/ shim) Co-Authored-By: Claude Opus 5.5 --- tests/test_issue5_phase1_delegation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_issue5_phase1_delegation.py b/tests/test_issue5_phase1_delegation.py index fd74267..32abd08 100644 --- a/tests/test_issue5_phase1_delegation.py +++ b/tests/test_issue5_phase1_delegation.py @@ -389,7 +389,7 @@ def test_wrapper_exit_code_mapping_literals_are_frozen(mam_sandbox): # wrapper reaches it only through `_decide`. for literal in ('_decide sub-status "$sub_rc"', '_decide exit-code "$job_status"', "--sub-rc \"$sub_rc\""): assert literal in text, literal - decide = _import_delegation(mam_sandbox, "wrapper") + from lib_py.delegation import wrapper as decide # no scripts/ shim: the wrapper calls it with -m assert decide.EXIT_CODES == {"completed": 0, "error": 1, "timeout": 2, "broker_unavailable": 3, "cancelled": 5} assert [decide.sub_status(rc, str(mam_sandbox), "none") for rc in range(6)] == [ "completed", "error", "timeout", "broker_unavailable", "timeout", "timeout"]