From 7f30bb9cd4de270364461ddcb625a4e9b5d3c08a Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Wed, 6 Dec 2023 10:38:25 +0100 Subject: [PATCH] Assert that tus uploader instance has URL Newer tusclient package allows passing in client in which case url can be None. --- lib/galaxy_test/api/test_tools_upload.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/galaxy_test/api/test_tools_upload.py b/lib/galaxy_test/api/test_tools_upload.py index 3a4a60bb52fc..00877c4afd39 100644 --- a/lib/galaxy_test/api/test_tools_upload.py +++ b/lib/galaxy_test/api/test_tools_upload.py @@ -989,6 +989,7 @@ def upload_file(url, path, api_key, history_id): # Upload a file to a tus server. uploader = my_client.uploader(path, metadata=metadata) uploader.upload() + assert uploader.url return uploader.url.rsplit("/", 1)[1] with self.dataset_populator.test_history() as history_id: