From b127caa672ad8462e37a0d0192b6cfd6998a3da6 Mon Sep 17 00:00:00 2001 From: Jeremy Mathews <Jeremy.Mathews@utsouthwestern.edu> Date: Tue, 28 May 2019 09:04:37 -0500 Subject: [PATCH] 56-Error check in test_motif_search.py for non empty fa file --- workflow/tests/test_motif_search.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workflow/tests/test_motif_search.py b/workflow/tests/test_motif_search.py index 28aec04..b66c813 100644 --- a/workflow/tests/test_motif_search.py +++ b/workflow/tests/test_motif_search.py @@ -21,7 +21,7 @@ def test_limited_peaks_singleend(): def test_motif_search_singleend(): assert os.path.exists(os.path.join(test_output_path, 'ENCSR238SGC_memechip', 'ENCSR238SGC.fa')) assert os.path.exists(os.path.join(test_output_path, 'ENCSR238SGC_memechip', 'index.html')) - + assert os.path.getsize(test_output_path + 'ENCSR238SGC.fa') > 0 @pytest.mark.singleskip_true def test_motif_search_singleend(): @@ -39,3 +39,4 @@ def test_limited_peaks_pairedend(): def test_motif_search_pairedend(): assert os.path.exists(os.path.join(test_output_path, 'ENCSR729LGA_memechip', 'ENCSR729LGA.fa')) assert os.path.exists(os.path.join(test_output_path, 'ENCSR729LGA_memechip', 'index.html')) + assert os.path.getsize(test_output_path + 'ENCSR729LGA.fa') > 0 -- GitLab