Skip to content

Commit c73e52f

Browse files
committed
Get tool versions instead of the whole tool panel to check tool presence
1 parent b17e41b commit c73e52f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lib/galaxy_test/base/populators.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2844,12 +2844,10 @@ def _run_cwl_tool_job(
28442844

28452845
if os.path.exists(tool_id):
28462846
raw_tool_id = os.path.basename(tool_id)
2847-
index = self.dataset_populator._get("tools", data=dict(in_panel=False))
2848-
index.raise_for_status()
2849-
tools = index.json()
2850-
# In panels by default, so flatten out sections...
2851-
tool_ids = [itemgetter("id")(_) for _ in tools]
2852-
if raw_tool_id in tool_ids:
2847+
get_response = self.dataset_populator._get("tools", data=dict(tool_id=raw_tool_id))
2848+
get_response.raise_for_status()
2849+
tool_versions: List[str] = get_response.json()
2850+
if tool_versions:
28532851
galaxy_tool_id = raw_tool_id
28542852
else:
28552853
dynamic_tool = self.dataset_populator.create_tool_from_path(tool_id)

0 commit comments

Comments
 (0)