Wrote simple annotation test
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
from mlstmyfasta.engine.annotations import fetch_ncbi_genbank
|
||||
from mlstmyfasta.engine.annotations import annotate_from_genbank, fetch_ncbi_genbank
|
||||
from Bio import SeqIO
|
||||
|
||||
from mlstmyfasta.engine.data.genomics import AnnotatedString
|
||||
|
||||
async def test_fetch_ncbi_genbank_with_id_works():
|
||||
assert len((await fetch_ncbi_genbank("CP011448.1")).coding) > 0
|
||||
|
||||
assert len((await fetch_ncbi_genbank("CP011448.1")).sequence) > 0
|
||||
|
||||
async def test_annotate_from_genbank_results_in_annotations():
|
||||
sequence = SeqIO.read("tests/resources/tohama_I_bpertussis.fasta", "fasta").seq
|
||||
assert (await annotate_from_genbank("CP011448.1", str(sequence))) is AnnotatedString
|
58377
tests/resources/tohama_I_bpertussis.fasta
Normal file
58377
tests/resources/tohama_I_bpertussis.fasta
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user