From 8c9a14f200010abcdc7642e14130c45cfbcd7e09 Mon Sep 17 00:00:00 2001 From: "U-STI\\morika" <morika@TPH-L17108.sti.local> Date: Mon, 29 Nov 2021 22:35:33 +0100 Subject: [PATCH] test for issue 7 --- tests/test_read_sequence.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/test_read_sequence.py diff --git a/tests/test_read_sequence.py b/tests/test_read_sequence.py new file mode 100644 index 0000000..2af0a2d --- /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 -- GitLab