From 49f9656642b9d3baef2cb7ee2bb4ef07a58dfdba Mon Sep 17 00:00:00 2001 From: Will Trimble Date: Fri, 30 Jun 2017 00:21:03 -0700 Subject: [PATCH 1/2] Removed debugging output --- scripts/filter-abund-single.py | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/filter-abund-single.py b/scripts/filter-abund-single.py index ef0c13068b..a2e44c37c6 100755 --- a/scripts/filter-abund-single.py +++ b/scripts/filter-abund-single.py @@ -176,7 +176,6 @@ def main(): args.variable_coverage, args.normalize_to) if trimmed_record: - print((trimmed_record,)) write_record(trimmed_record, outfp) log_info('output in {outfile}', outfile=outfile) From 07c41afdeb7afe846798e1fdea28654dbcbb088e Mon Sep 17 00:00:00 2001 From: Will Trimble Date: Fri, 30 Jun 2017 07:55:07 -0700 Subject: [PATCH 2/2] Added tests for excessive (debugging) output to test_filter_abund_1_quiet and test_filter_abund_1_singlefile_quiet --- tests/test_filter_abund.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_filter_abund.py b/tests/test_filter_abund.py index 99e29708a1..c12a8471ad 100644 --- a/tests/test_filter_abund.py +++ b/tests/test_filter_abund.py @@ -410,6 +410,7 @@ def test_filter_abund_1_quiet(): status, out, err = utils.runscript(script, args, in_dir) assert len(err) == 0 + assert len(out) < 1000 outfile = infile + '.abundfilt' n_outfile = n_infile + '.abundfilt' @@ -427,6 +428,7 @@ def test_filter_abund_1_singlefile_quiet(): (status, out, err) = utils.runscript(script, args, in_dir) assert len(err) == 0 + assert len(out) < 1000 outfile = infile + '.abundfilt' assert os.path.exists(outfile), outfile