Skip to content
Snippets Groups Projects
Commit f388dfc1 authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Fix pytest for align

parent 034a80c7
No related merge requests found
Pipeline #5852 canceled with stages
......@@ -7,8 +7,6 @@ import utils
data_output_path = os.path.dirname(os.path.abspath(__file__)) + \
'/../../'
logs_output_path = os.path.dirname(os.path.abspath(__file__)) + \
'/../../'
@pytest.mark.alignData
......@@ -27,15 +25,17 @@ def test_alignData_pe():
@pytest.mark.alignLogs
def test_alignLogs_se():
assert os.path.exists(os.path.join(logs_output_path, '16-1ZX4.align.err'))
assert '34497376 reads; of these:' in open(os.path.join(logs_output_path, '16-1ZX4.align.err')).readlines()[0]
assert os.path.exists(os.path.join(logs_output_path, '16-1ZX4.align.out'))
assert os.path.exists(os.path.join(data_output_path, '16-1ZX4.align.err'))
assert utils.count_lines(os.path.join(data_output_path, '16-1ZX4.align.err')) == 7
assert '34497376 reads; of these:' in open(os.path.join(data_output_path, '16-1ZX4.align.err')).readlines()[0]
assert os.path.exists(os.path.join(data_output_path, '16-1ZX4.align.out'))
assert utils.count_lines(os.path.join(data_output_path, '16-1ZX4.align.out')) == 0
@pytest.mark.alignLogs
def test_alignLogs_pe():
assert os.path.exists(os.path.join(logs_output_path, 'Q-Y5JA.align.err'))
assert utils.count_lines(os.path.join(logs_output_path, 'Q-Y5JA.align.err')) == 7
assert '15824858 reads; of these:' in open(os.path.join(logs_output_path, 'Q-Y5JA.align.err')).readlines()[0]
assert os.path.exists(os.path.join(logs_output_path, 'Q-Y5JA.align.out'))
assert utils.count_lines(os.path.join(logs_output_path, 'Q-Y5JA.align.out')) == 0
assert os.path.exists(os.path.join(data_output_path, 'Q-Y5JA.align.err'))
assert utils.count_lines(os.path.join(data_output_path, 'Q-Y5JA.align.err')) == 7
assert '15824858 reads; of these:' in open(os.path.join(data_output_path, 'Q-Y5JA.align.err')).readlines()[0]
assert os.path.exists(os.path.join(data_output_path, 'Q-Y5JA.align.out'))
assert utils.count_lines(os.path.join(data_output_path, 'Q-Y5JA.align.out')) == 0
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment