Skip to content

Commit

Permalink
Assert that tus uploader instance has URL
Browse files Browse the repository at this point in the history
Newer tusclient package allows passing in client in which case url can
be None.
  • Loading branch information
mvdbeek committed Dec 6, 2023
1 parent 472ebfe commit 7f30bb9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/galaxy_test/api/test_tools_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7f30bb9

Please sign in to comment.