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.