Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
test_composite_datatype_stage_upload1
test
Can be squashed into commit "Record unnamed_outputs as job outputs, wait for job outputs in staging function" . Fix the following traceback: ``` self = <galaxy_test.api.test_tools_upload.TestToolsUpload object at 0x7f309146b550> history_id = '333add226b1f5083' @skip_without_datatype("velvet") def test_composite_datatype_stage_upload1(self, history_id: str) -> None: job = { "input1": { "class": "File", "format": "velvet", "composite_data": [ "test-data/simple_line.txt", "test-data/simple_line_alternative.txt", "test-data/simple_line_x2.txt", ], } } > stage_inputs(self.galaxy_interactor, history_id, job, use_path_paste=False, use_fetch_api=False) lib/galaxy_test/api/test_tools_upload.py:497: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ lib/galaxy_test/base/populators.py:3181: in stage_inputs return InteractorStaging(galaxy_interactor, use_fetch_api=use_fetch_api).stage( lib/galaxy/tool_util/client/staging.py:264: in stage return galactic_job_json( lib/galaxy/tool_util/cwl/util.py:392: in galactic_job_json replace_keys[key] = replacement_item(value) lib/galaxy/tool_util/cwl/util.py:220: in replacement_item return replacement_file(value) lib/galaxy/tool_util/cwl/util.py:251: in replacement_file rval_c = upload_file_with_composite_data(None, composite_data, filetype=filetype, **kwd) lib/galaxy/tool_util/cwl/util.py:190: in upload_file_with_composite_data return response_to_hda(target, upload_response) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ target = <galaxy.tool_util.cwl.util.FileUploadTarget object at 0x7f30044f61c0> upload_response = {'implicit_collections': [], 'jobs': [{'create_time': '2024-04-02T13:19:27.579575', 'exit_code': None, 'galaxy_version...ats': ['http://edamontology.org/format_1915'], 'data_type': 'galaxy.datatypes.data.Data', 'deleted': False, ...}], ...} def response_to_hda(target: UploadTarget, upload_response: Dict[str, Any]) -> Dict[str, str]: > dataset = next(iter(upload_response["outputs"].values())) E AttributeError: 'list' object has no attribute 'values' lib/galaxy/tool_util/cwl/util.py:160: AttributeError ```
- Loading branch information