Skip to content

Commit

Permalink
fix: nested assertions must be list
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Mar 8, 2024
1 parent e76f5ff commit 9a17a04
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/galaxy/tool_util/parser/yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,11 @@ def expand_dict_form(item):
new_assertion["that"] = assertion_key
new_assertion.update(assertion_value)
assertion = new_assertion
children = to_test_assert_list(assertion.pop("children", []))
children = assertion.pop("asserts", assertion.pop("children", []))
# if there are no nested assertions then children should be []
# but to_test_assert_list would return None
if children:
children = to_test_assert_list(children)
assert_dict: AssertionDict = dict(
tag=assertion["that"],
attributes=assertion,
Expand Down

0 comments on commit 9a17a04

Please sign in to comment.