-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
Fix esasky
remote tests
#2672
Fix esasky
remote tests
#2672
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2672 +/- ##
=======================================
Coverage 69.17% 69.17%
=======================================
Files 304 304
Lines 22524 22524
=======================================
Hits 15580 15580
Misses 6944 6944 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
result = ESASky.get_images( | ||
position="M51", missions=mission, download_dir=tmp_path | ||
) |
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.
keep these long, we use line length 120.
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.
I've merged the line triplets.
for hdu_list in result[mission.upper()]: | ||
hdu_list.close() |
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.
Thanks. I wonder whether this should rather be dealt with by a context manager somewhere in the module instead, but I suppose getting a workaround in the test would do for now.
The two reasons the tests were failing were not using uppercase filenames for file existence checks where needed and not closing HDULists.
8e9b2f0
to
8644ab7
Compare
Thanks @eerovaher! |
The two reasons the tests were failing were not using uppercase filenames for file existence checks where needed and not closing HDULists.
Contributes towards #2634