Skip to content
Snippets Groups Projects
Commit fa52a716 authored by Venkat Malladi's avatar Venkat Malladi
Browse files

Fix util tests.

parent 0e4adc7a
Branches
Tags
No related merge requests found
Pipeline #2248 failed with stages
in 9 seconds
......@@ -17,7 +17,7 @@ def steps():
def steps_1(steps):
design_file = "test_data/design_ENCSR265ZXX_SE.txt"
step = [
"grep A549 %s " % (design_file)]
"grep ENCLB170KFO %s " % (design_file)]
return step
......@@ -31,7 +31,7 @@ def steps_2(steps_1):
@pytest.mark.unit
def test_run_one_step(steps_1, capsys):
check_output = 'ENCLB144FDT\tENCSR238SGC\tlimb\tH3K4me1\tNone\t1\tENCLB304SBJ\tENCFF833BLU.fastq.gz'.encode('UTF-8')
check_output = 'ENCLB170KFO\tENCSR265ZXX\tA549\tNone\t100nm\tDex\t1\tENCFF115PAE.fastq.gz'.encode('UTF-8')
out, err = utils.run_pipe(steps_1)
output, errors = capsys.readouterr()
assert "first step shlex to stdout" in output
......@@ -40,7 +40,7 @@ def test_run_one_step(steps_1, capsys):
@pytest.mark.unit
def test_run_two_step(steps_2, capsys):
check_output = 'ENCFF833BLU.fastq.gz\nENCFF646LXU.fastq.gz'.encode('UTF-8')
check_output = 'ENCFF115PAE.fastq.gz'.encode('UTF-8')
out, err = utils.run_pipe(steps_2)
output, errors = capsys.readouterr()
assert "intermediate step 2 shlex to stdout" in output
......@@ -49,7 +49,7 @@ def test_run_two_step(steps_2, capsys):
@pytest.mark.unit
def test_run_last_step_file(steps_2, capsys, tmpdir):
check_output = 'ENCFF833BLU.fastq.gz\nENCFF646LXU.fastq.gz'
check_output = 'ENCFF115PAE.fastq.gz'
tmp_outfile = tmpdir.join('output.txt')
out, err = utils.run_pipe(steps_2, tmp_outfile.strpath)
output, errors = capsys.readouterr()
......
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