Loading lib/galaxy/model/dereference.py +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ def dereference_to_model(sa_session, user, history, data_request_uri: DataReques hda.dataset.sources = [dataset_source] transform: List[TransformAction] = [] if data_request_uri.space_to_tab: transform.append({"action": "space_to_tab"}) transform.append({"action": "spaces_to_tabs"}) elif data_request_uri.to_posix_lines: transform.append({"action": "to_posix_lines"}) if len(transform) > 0: Loading test/unit/data/test_dereference.py +1 −1 Original line number Diff line number Diff line Loading @@ -54,4 +54,4 @@ def test_dereference_to_posix(): hda = dereference_to_model(sa_session, user, history, uri_request) assert hda.name == "foobar.txt" assert hda.dataset.sources[0].source_uri == TEST_BASE64_URI assert hda.dataset.sources[0].transform[0]["action"] == "space_to_tab" assert hda.dataset.sources[0].transform[0]["action"] == "spaces_to_tabs" Loading
lib/galaxy/model/dereference.py +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ def dereference_to_model(sa_session, user, history, data_request_uri: DataReques hda.dataset.sources = [dataset_source] transform: List[TransformAction] = [] if data_request_uri.space_to_tab: transform.append({"action": "space_to_tab"}) transform.append({"action": "spaces_to_tabs"}) elif data_request_uri.to_posix_lines: transform.append({"action": "to_posix_lines"}) if len(transform) > 0: Loading
test/unit/data/test_dereference.py +1 −1 Original line number Diff line number Diff line Loading @@ -54,4 +54,4 @@ def test_dereference_to_posix(): hda = dereference_to_model(sa_session, user, history, uri_request) assert hda.name == "foobar.txt" assert hda.dataset.sources[0].source_uri == TEST_BASE64_URI assert hda.dataset.sources[0].transform[0]["action"] == "space_to_tab" assert hda.dataset.sources[0].transform[0]["action"] == "spaces_to_tabs"