-
Notifications
You must be signed in to change notification settings - Fork 35
Fix coverage #381
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 coverage #381
Conversation
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.
LGTM
As expected this fails with
|
Thanks @eric-czech, do the fixes look OK too? |
sgkit/io/vcfzarr_reader.py
Outdated
@@ -169,7 +169,7 @@ def _vcfzarr_to_dataset( | |||
if "variants/ID" in vcfzarr: | |||
variants_id = da.from_zarr(vcfzarr["variants/ID"]).astype(str) | |||
else: | |||
variants_id = None |
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.
Not worth testing this one?
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.
Refactored to cover this case (see pystatgen/sgkit@be7f5be)
Yep, the new tests look good to me. |
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.
LGTM
6b38be3
to
be7f5be
Compare
Codecov Report
@@ Coverage Diff @@
## master #381 +/- ##
===========================================
+ Coverage 95.15% 100.00% +4.84%
===========================================
Files 31 31
Lines 2334 2223 -111
===========================================
+ Hits 2221 2223 +2
+ Misses 113 0 -113
Continue to review full report at Codecov.
|
Two approvals here @tomwhite, so merge as you see fit! |
This is to fix #380, first by causing the build to fail (by adding the
--cov-fail-under
pytest option) - I will then add a commit to fix the remaining coverage issues.