Skip to content

Commit 56ad9b2

Browse files
committed
improve test coverage
1 parent 424ac42 commit 56ad9b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_module_recombinase.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,10 @@ def test_recombinase_collection_annotate():
339339
assert annotated_seq.features[0].qualifiers.get("label", []) == ["s1"]
340340
assert annotated_seq.features[1].qualifiers.get("label", []) == ["s1"]
341341

342+
# It does not re-annotate if the sequence is already annotated.
343+
annotated_seq = collection.annotate(annotated_seq)
344+
assert len(annotated_seq.features) == 2
345+
342346

343347
def test_recombinase_collection_init_errors():
344348
# Check that the init method raises errors for invalid inputs.

0 commit comments

Comments
 (0)