-
-
Notifications
You must be signed in to change notification settings - Fork 408
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
Refactor astroquery/utils/system_tools.py
and its tests
#2306
Conversation
1. There is no need to check for the availability of `gzip` because it is in the Python standard library. 2. There is no need to write code for managing temporary directories because `pytest` provides the `tmp_path` fixture. 3. A separate test for checking the existance of a file produced by the tests is not needed because if it does not exist the following tests fail anyways.
All imports are now done at modul level and unused code has been removed.
Codecov Report
@@ Coverage Diff @@
## main #2306 +/- ##
=======================================
Coverage 62.84% 62.84%
=======================================
Files 130 130
Lines 16841 16837 -4
=======================================
- Hits 10584 10582 -2
+ Misses 6257 6255 -2
Continue to review full report at Codecov.
|
I can see |
OK, thanks for confirming. Let's try to see this then, thanks @eerovaher for the cleanup. |
I'll try to clear any confusion there may be about the availability of |
Yes, I suppose part of the issues came with the fact that the standalone, UNIX |
See the commit messages for details.