diff --git a/workflow/tests/test_dataQC.py b/workflow/tests/test_dataQC.py index 28e96284e8e4b1f16faf8faae59c33e77861ec60..13baa1ca86078e7c0e19a3cc1601db9876ea0004 100644 --- a/workflow/tests/test_dataQC.py +++ b/workflow/tests/test_dataQC.py @@ -11,4 +11,14 @@ test_output_path = os.path.dirname(os.path.abspath(__file__)) + \ @pytest.mark.dataQC def test_dataQC(): assert os.path.exists(os.path.join(test_output_path, 'Q-Y5F6_1M.se.sorted.deduped.tin.xls')) + assert countLines(os.path.join(test_output_path, 'Q-Y5F6_1M.se.sorted.deduped.tin.xls')) +def countLines(fileName): + data = False + file = open(fileName, "r") + for line in file: + if file.readlines()[6] != "geneID": + data = True + break + + return data