-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests for progress report on size-less http downloads #369
Add tests for progress report on size-less http downloads #369
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #369 +/- ##
==========================================
+ Coverage 91.96% 92.17% +0.20%
==========================================
Files 122 122
Lines 9101 9107 +6
==========================================
+ Hits 8370 8394 +24
+ Misses 731 713 -18
☔ View full report in Codecov by Sentry. |
a7245f9
to
c496b84
Compare
This has been in draft mode for a long time. I know see that a review was requested (missed that due to the draft mode, sorry). I am closing this PR for now as part of a cleanup. Feel free to reopen when the conflicts are removed. Sorry for the hassle. |
This commit updates the comments in url_oerations/http.py to explain why and how we calculate downloaded bytes in the absence of a content-length header.
This commit adds a test that verifies that http-download progress is reported, if no content-length header is provided.
Thanks, conflicts removed and reopened |
c496b84
to
87040e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thx! Before merging, this needs a changelog, because it is not just adding a test.
Sorry, no, only comments are adjusted. |
This PR adds a test to verify that http-download reports progress if no content-length is provided in the http-result headers. In addition the comments w.r.t. to download size calculation are updated to reflect the code.
This is a small add-on to #365 (which was already merged)