Renamed tests subdirectory to mirror source
This commit is contained in:
12
tests/automlst/engine/local/test_abif.py
Normal file
12
tests/automlst/engine/local/test_abif.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import os
|
||||
|
||||
from automlst.engine.local.abif import read_abif, reference_consensus_assembly
|
||||
|
||||
async def test_load_sanger_sequence_has_data():
|
||||
assert os.path.exists("tests/resources/1I1_F_P1815443_047.ab1")
|
||||
result_data = await read_abif("tests/resources/1I1_F_P1815443_047.ab1")
|
||||
assert result_data is not None
|
||||
|
||||
async def test_consensus_assembly_with_ncbi():
|
||||
consensus = reference_consensus_assembly("ON685494.1", [await read_abif("tests/resources/1I1_F_P1815443_047.ab1"), await read_abif("tests/resources/1I1_R_P1815443_094.ab1")])
|
||||
# TODO complete implementing this
|
7
tests/automlst/engine/local/test_fasta.py
Normal file
7
tests/automlst/engine/local/test_fasta.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from automlst.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"
|
Reference in New Issue
Block a user