Skip to content

Commit

Permalink
Fix tool tests to include secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
arash77 committed Nov 28, 2024
1 parent be01814 commit bdf8667
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/unit/tool_util/test_cwl.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def test_load_proxy_simple():
outputs, output_collections = tool_source.parse_outputs(None)
assert len(outputs) == 1

software_requirements, containers, resource_requirements = tool_source.parse_requirements_and_containers()
software_requirements, containers, resource_requirements, secrets = tool_source.parse_requirements_and_containers()
assert software_requirements.to_dict() == []
assert len(containers) == 1
assert containers[0].to_dict() == {
Expand Down
4 changes: 3 additions & 1 deletion test/unit/tool_util/test_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,9 @@ def test_action(self):
assert self._tool_source.parse_action_module() is None

def test_requirements(self):
software_requirements, containers, resource_requirements = self._tool_source.parse_requirements_and_containers()
software_requirements, containers, resource_requirements, secrets = (
self._tool_source.parse_requirements_and_containers()
)
assert software_requirements.to_dict() == [{"name": "bwa", "type": "package", "version": "1.0.1", "specs": []}]
assert len(containers) == 1
assert containers[0].to_dict() == {
Expand Down

0 comments on commit bdf8667

Please sign in to comment.