Skip to content

Commit

Permalink
Update changelog, add PROKKA test
Browse files Browse the repository at this point in the history
  • Loading branch information
standage committed Jan 15, 2017
1 parent 4cd885d commit 43a510e
Show file tree
Hide file tree
Showing 3 changed files with 397 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Module for mRNA handling, with a function for selecting the primary mRNA from
a gene or other feature.
- New CLI command `tag pmrna`.
- A new `Score` class for internal handling of feature scores. Not yet included
in the API, and may not ever be.

### Changed
- Modules focused on classes / data structure now support more concise imports
(for example, `from tag import Feature` and `tag.Feature` now supported and
preferred over `from tag.feature import feature` and `tag.feature.Feature`).

### Fixed
- Resolved a bug with the GFF3Writer failing to print `##FASTA` directives
before writing sequences to output.

## [0.1.1] - 2016-12-19
### Changed
- CLI implemented using `entry_points` instead of a dedicated script.
Expand Down
10 changes: 7 additions & 3 deletions tests/test_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,14 @@ def test_write_file():
assert testoutput1 == testoutput2, (testoutput1, testoutput2)


def test_write_minimus():
reader = GFF3Reader(tag.pkgdata('minimus.gff3'))
@pytest.mark.parametrize('gff3', [
'minimus.gff3',
'prokka.gff3',
])
def test_write_in_out(gff3):
reader = GFF3Reader(tag.pkgdata(gff3))
output = StringIO()
writer = GFF3Writer(reader, output)
writer.write()

assert output.getvalue() == tag.pkgdata('minimus.gff3').read()
assert output.getvalue().strip() == tag.pkgdata(gff3).read().strip()

0 comments on commit 43a510e

Please sign in to comment.