From 8b459e85d5e9c7d155c3394aecfd1a263acc1df3 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Mon, 1 Feb 2021 14:54:13 -0300 Subject: [PATCH] Moved the plug-ins load to the coverage section in the tests. So we get the re-load protection covered in the reports. --- tests/test_plot/test_misc_2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_plot/test_misc_2.py b/tests/test_plot/test_misc_2.py index 0de9183a..8b800c1c 100644 --- a/tests/test_plot/test_misc_2.py +++ b/tests/test_plot/test_misc_2.py @@ -39,6 +39,9 @@ def mocked_check_output(cmd, stderr=None): def run_compress(ctx, test_import_fail=False): + # Start coverage + cov.load() + cov.start() # Load the plug-ins load_actions() # Create a compress object with the dummy file as source @@ -47,9 +50,6 @@ def run_compress(ctx, test_import_fail=False): out.config() # Setup the GS output dir, needed for the output path GS.out_dir = '.' - # Start coverage - cov.load() - cov.start() # Run the compression and catch the error with pytest.raises(SystemExit) as pytest_wrapped_e: if test_import_fail: