Skip to content

Commit

Permalink
+ no feature test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcguffi committed Apr 11, 2024
1 parent 359ef2c commit a274b12
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/test_units.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,3 +311,24 @@ def test_bokeh_bakein():
assert cdn.exists()

assert inline.stat().st_size > cdn.stat().st_size


def test_zero_feature():

plasmid = Path("nan_feature.fa")
with tempfile.TemporaryDirectory() as tmpdir:
runner = CliRunner()
result = runner.invoke(
main_batch,
[
"-i",
f"tests/test_data/{plasmid}",
"-o",
tmpdir,
"-s",
"",
],
)
assert result.exit_code == 0
gbk = SeqIO.read(tmpdir / plasmid.with_suffix(".gbk"), "genbank")
assert len(gbk.features) == 2

0 comments on commit a274b12

Please sign in to comment.