diff --git a/tests/test_read_sequence.py b/tests/test_read_sequence.py index 3b1021bb3052b644905777b45858724554ea5d88..29bfa30738efd6e133ac2feeb997d66c912561e3 100644 --- a/tests/test_read_sequence.py +++ b/tests/test_read_sequence.py @@ -11,12 +11,13 @@ from src.read_sequencing import read_sequencing def test_read_sequencing(tmpdir): - """Tests the correct number of reads were generated.""" + """Tests the correct number of reads were generated and the correct length of reads.""" read_sequencing( frag_file_name=Path.cwd() / 'tests/resources/test_terminal_fragments.txt', - num_reads=80, - read_len=10, + num_reads=10, + read_len=80, output_file_name=tmpdir / 'reads.txt' ) df_out = pd.read_table(tmpdir / 'reads.txt', header=None) - assert df_out.shape[0] == 80 * 2 + assert df_out.shape[0] == 10 * 2 + assert len(df_out.iloc[lambda x: x.index % 2 == 1, 0][1]) == 80