From d6dd0596956b7c1eca95eb8127d925995f723ae4 Mon Sep 17 00:00:00 2001 From: Venkat Malladi <venkat.malladi@utsouthwestern.edu> Date: Sun, 6 Jan 2019 17:23:35 -0600 Subject: [PATCH] verify that output directory doesn't exist. --- workflow/tests/test_diff_peaks.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/workflow/tests/test_diff_peaks.py b/workflow/tests/test_diff_peaks.py index 6b4a6ed..ad66c4a 100644 --- a/workflow/tests/test_diff_peaks.py +++ b/workflow/tests/test_diff_peaks.py @@ -12,20 +12,11 @@ test_output_path = os.path.dirname(os.path.abspath(__file__)) + \ @pytest.mark.singleend def test_diff_peaks_singleend_single_rep(): - assert os.path.exists(os.path.join(test_output_path, 'no_diffbind.bed')) - assert os.path.exists(os.path.join(test_output_path, 'no_diffbind.csv')) - assert os.path.exists(os.path.join(test_output_path, 'no_heatmap.pdf')) - assert os.path.exists(os.path.join(test_output_path, 'no_pca.pdf')) - assert os.path.exists(os.path.join(test_output_path, 'normcount_peaksets.pdf')) - + assert os.path.isdir(test_output_path) == False @pytest.mark.pairedend def test_annotate_peaks_pairedend_single_rep(): - assert os.path.exists(os.path.join(test_output_path, 'no_diffbind.bed')) - assert os.path.exists(os.path.join(test_output_path, 'no_diffbind.csv')) - assert os.path.exists(os.path.join(test_output_path, 'no_heatmap.pdf')) - assert os.path.exists(os.path.join(test_output_path, 'no_pca.pdf')) - assert os.path.exists(os.path.join(test_output_path, 'normcount_peaksets.pdf')) + assert os.path.isdir(test_output_path) == False @pytest.mark.singlediff def test_diff_peaks_singleend_multiple_rep(): -- GitLab