Normalize Glas execution evidence
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a028de-e2c8-7732-8521-46a7fc5db82f
This commit is contained in:
parent
b933cf52c8
commit
7e81545b24
13 changed files with 528 additions and 33 deletions
|
|
@ -148,6 +148,13 @@ class TestExecutionRefs:
|
|||
|
||||
assert refs == {"resource_envelope_refs": ["ok"]}
|
||||
|
||||
def test_drops_non_string_items_in_reference_lists(self) -> None:
|
||||
refs = normalise_execution_refs(
|
||||
{"goal_refs": ["goal:1@1", {"credential": "must-drop"}, 17]}
|
||||
)
|
||||
|
||||
assert refs == {"goal_refs": ["goal:1@1"]}
|
||||
|
||||
@pytest.mark.parametrize("bad", [None, "refs", ["a"], 5])
|
||||
def test_non_dict_becomes_empty(self, bad) -> None:
|
||||
assert normalise_execution_refs(bad) == {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue