-
Notifications
You must be signed in to change notification settings - Fork 1
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 stream merger, separator directives #68
Conversation
Codecov Report
@@ Coverage Diff @@
## master #68 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 18 19 +1
Lines 1073 1114 +41
Branches 244 252 +8
=====================================
+ Hits 1073 1114 +41
Continue to review full report at Codecov.
|
@@ -108,3 +106,13 @@ def test_sum(capsys): | |||
|
|||
out, err = capsys.readouterr() | |||
assert out.strip() == tag.pkgdata('sum-test-out.txt').read().strip() | |||
|
|||
|
|||
def test_merge(capfd): |
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.
There's some capsys/capfd weirdness that needs to be sorted out. May as well drop the whole logging crap as it seems to create a lot of problems with capturing testing output.
This update introduces a couple new changes: a new
tag.select.merge
function for efficient merging of multiple sorted streams into a single stream; and a modification to theGFF3Writer
class so that it will intermittently output separator directives in long stretches of simple (childless) features.