diff --git a/tests/test_read_sequence.py b/tests/test_read_sequence.py new file mode 100644 index 0000000000000000000000000000000000000000..2af0a2db26ebdd18eeb78261b267fb337e909b48 --- /dev/null +++ b/tests/test_read_sequence.py @@ -0,0 +1,17 @@ +"""Test Issue 7.""" + +import pandas as pd +from src.read_sequencing import read_sequencing + + +def test_read_sequencing(tmpdir): + """Tests the output, input file name and separator.""" + read_sequencing( + frag_file_name='./tests/resources/test_terminal_fragments.txt', + num_reads=80, + read_len=10, + num_seq_cyc=5, + output_file_name=tmpdir / 'reads.txt' + ) + df_out = pd.read_table(tmpdir / 'reads.txt', header=None) + assert df_out.shape[0] == 80 * 5