From e952181e0da7e2bd83a5dfb1dc7e5e44e6f843db Mon Sep 17 00:00:00 2001 From: Venkat Malladi <venkat.malladi@utsouthwestern.edu> Date: Mon, 23 Mar 2020 17:38:06 -0500 Subject: [PATCH] Test that size is greater than 0. --- workflow/tests/test_plot_profile.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/workflow/tests/test_plot_profile.py b/workflow/tests/test_plot_profile.py index 6c9605d..b304551 100644 --- a/workflow/tests/test_plot_profile.py +++ b/workflow/tests/test_plot_profile.py @@ -11,8 +11,9 @@ test_output_path = os.path.dirname(os.path.abspath(__file__)) + \ @pytest.mark.singleend def test_plot_singleend(): assert os.path.exists(os.path.join(test_output_path, 'plotProfile.png')) - + assert os.path.getsize(os.path.join(test_output_path, 'plotProfile.png')) > 0 @pytest.mark.pairedend def test_plot_pairedend(): - assert os.path.exists(os.path.join(test_output_path, 'computeMatrix.gz')) + assert os.path.exists(os.path.join(test_output_path, 'plotProfile.png')) + assert os.path.getsize(os.path.join(test_output_path, 'plotProfile.png')) > 0 -- GitLab