Extend & improve file operations tests (#3404)

Co-authored-by: Reinier van der Leer <github@pwuts.nl>
This commit is contained in:
k-boikov
2023-04-29 17:55:47 +03:00
committed by GitHub
parent 9c6494aca7
commit 2d058feaf8
2 changed files with 152 additions and 114 deletions

View File

@@ -264,7 +264,7 @@ def download_file(url, filename):
progress = f"{readable_file_size(downloaded_size)} / {readable_file_size(total_size)}"
spinner.update_message(f"{message} {progress}")
return f'Successfully downloaded and locally stored file: "{filename}"! (Size: {readable_file_size(total_size)})'
return f'Successfully downloaded and locally stored file: "{filename}"! (Size: {readable_file_size(downloaded_size)})'
except requests.HTTPError as e:
return f"Got an HTTP Error whilst trying to download file: {e}"
except Exception as e: