From 375b9e5683a4dc9124f7288091ea354bcbd36b20 Mon Sep 17 00:00:00 2001 From: s181385 <spencer.barnes@utsouthwestern.edu> Date: Tue, 4 Aug 2020 15:38:22 -0500 Subject: [PATCH] add test to ensure symbol column of peak annotation is not empty --- workflow/tests/test_annotate_peaks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/workflow/tests/test_annotate_peaks.py b/workflow/tests/test_annotate_peaks.py index 7365635..0a6bf8f 100644 --- a/workflow/tests/test_annotate_peaks.py +++ b/workflow/tests/test_annotate_peaks.py @@ -25,6 +25,8 @@ def test_annotation_singleend(): annotation_file = test_output_path + 'ENCSR238SGC.chipseeker_annotation.tsv' assert os.path.exists(annotation_file) assert utils.count_lines(annotation_file) >= 149284 + df = pd.read_csv(annotation_file, sep = "\t") + assert df['symbol'].notna().all() @pytest.mark.pairedend @@ -42,3 +44,5 @@ def test_annotation_pairedend(): annotation_file = test_output_path + 'ENCSR729LGA.chipseeker_annotation.tsv' assert os.path.exists(annotation_file) assert utils.count_lines(annotation_file) >= 25367 + df = pd.read_csv(annotation_file, sep = "\t") + assert df['symbol'].notna().all() -- GitLab