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

Add unit test for outputBag

parent 49e3be49
Branches
Tags
2 merge requests!39v0.0.2,!38Resolve "Add input bagit to ouput"
Pipeline #7847 passed with stages
in 1 hour, 36 minutes, and 30 seconds
......@@ -130,6 +130,13 @@ dataQC:
echo "tin.py -i ./test_data/bam/small/Q-Y5F6_1M.se.sorted.deduped.${i}.bam -r /project/BICF/BICF_Core/shared/gudmap/references/GRCh38.p12.v31/bed/genome.bed; cat Q-Y5F6_1M.se.sorted.deduped.${i}.tin.xls | tr -s \"\\w\" \"\\t\" | grep -P \"\\t${i}\\t\";"; done | singularity run 'docker://bicf/rseqc3.0:2.0.1_indev' parallel -j 20 -k >> Q-Y5F6_1M.se.sorted.deduped.tin.xls
- pytest -m dataQC
outputBag:
stage: unit
script:
- mkdir test
- singularity run 'docker://bicf/gudmaprbkfilexfer:2.0.1_indev' bdbag test --archiver zip
- pytest -m outputBag
integration_se:
stage: integration
......@@ -181,5 +188,4 @@ consistency:
- assignedPE.txt
- assignedExpectSE.txt
- assignedExpectPE.txt
expire_in: 7 days
expire_in: 7 days
\ No newline at end of file
#!/usr/bin/env python3
import pytest
import pandas as pd
from io import StringIO
import os
test_output_path = os.path.dirname(os.path.abspath(__file__)) + \
'/../../'
@pytest.mark.outputBag
def test_outputBag():
assert os.path.exists(os.path.join(test_output_path, 'test.zip'))
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