-
-
Notifications
You must be signed in to change notification settings - Fork 24
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 callbacks for ftp downloads #150
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #150 +/- ##
==========================================
+ Coverage 90.23% 90.51% +0.28%
==========================================
Files 5 5
Lines 635 654 +19
==========================================
+ Hits 573 592 +19
Misses 62 62 ☔ View full report in Codecov by Sentry. |
5018a7e
to
d9b17fa
Compare
574a903
to
591bec0
Compare
Thanks a lot @samaloney 🚀 The windows test fail seems real? |
Yea I assumed since it didn't have the |
591bec0
to
be2123d
Compare
be2123d
to
ebffbc2
Compare
httpserver.serve_content( | ||
"SIMPLE = T", headers={"Content-Disposition": "attachment; filename=testfile.fits"} | ||
) | ||
|
||
def done_callback(filepath, url, error): | ||
(Path(gettempdir()) / "callback.done").touch() | ||
cb = MagicMock() |
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.
using magicmock for this is a great idea and one I wish I had thought of lol
#127 didn't add the callback for ftp downloads this PR adds them.