From bdf8667937e606fbae95bf11c5c76251b4ce6e8a Mon Sep 17 00:00:00 2001 From: Arash Date: Thu, 31 Oct 2024 15:05:34 +0100 Subject: [PATCH] Fix tool tests to include secrets --- test/unit/tool_util/test_cwl.py | 2 +- test/unit/tool_util/test_parsing.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/unit/tool_util/test_cwl.py b/test/unit/tool_util/test_cwl.py index a3bae657b132..5977ec3565d0 100644 --- a/test/unit/tool_util/test_cwl.py +++ b/test/unit/tool_util/test_cwl.py @@ -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() == { diff --git a/test/unit/tool_util/test_parsing.py b/test/unit/tool_util/test_parsing.py index f2b311fc188b..ae7290179abf 100644 --- a/test/unit/tool_util/test_parsing.py +++ b/test/unit/tool_util/test_parsing.py @@ -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() == {