Completed NCBI lookup, FASTA reading, ABIF reading, and Institut Pasteur querying

This commit is contained in:
2025-01-03 16:41:51 +00:00
parent b834aa93b0
commit 362e0867e5
22 changed files with 339 additions and 56 deletions

View File

@@ -0,0 +1,8 @@
import os
from mlstmyfasta.engine.local.abif import load_sanger_sequence
async def test_load_sanger_sequence_has_data():
assert os.path.exists("tests/resources/1I1_F_P1815443_047.ab1")
result_data = await load_sanger_sequence("tests/resources/1I1_F_P1815443_047.ab1")
assert result_data is not None

View File

@@ -0,0 +1,7 @@
from mlstmyfasta.engine.local.fasta import read_fasta
async def test_fasta_reader_not_none():
named_strings = read_fasta("tests/resources/tohama_I_bpertussis.fasta")
async for named_string in named_strings:
assert named_string.name == "BX470248.1"