-
Notifications
You must be signed in to change notification settings - Fork 55
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 try/except
around extraction to accommodate failing uncompression in pyani download
#385
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #385 +/- ##
==========================================
- Coverage 75.82% 75.74% -0.08%
==========================================
Files 55 55
Lines 3747 3756 +9
==========================================
+ Hits 2841 2845 +4
- Misses 906 911 +5 |
try/except
around extraction to prevent pyani
falling overtry/except
around extraction to accommodate failing uncompression in pyani download
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.
Looks like it should work - I've still to check locally, and I may expand the logger warning.
Uses a different entry point into the code, which makes the test much neater.
Even with the custom exception class, the fact that I am handling the error means I believe passing fixtures into mock functions (that use the Currently, I have opted to write a unit test for Should I pursue tests for those blocks? |
@widdowquinn Do you find the current state of testing for these changes sufficient, or would you want to see something else? |
Fixes problem where failure to extract the contents of individual zip files from
pyani download
triggers aSystemExit
.Closes #383.
Please include a summary of the change and which issue is fixed. Please also include the motivation and context, and note the tests that apply to these changes.
Type of change
Action Checklist
pyani
repository under your own account (please allow write access for repository maintainers)CONTRIBUTING.md
)pytest -v
non-passing code will not be mergedorigin/master
flake8
andblack
before submissionPull requests
section in thepyani
repository