Moved the plug-ins load to the coverage section in the tests.

So we get the re-load protection covered in the reports.
This commit is contained in:
Salvador E. Tropea 2021-02-01 14:54:13 -03:00
parent e3766519ac
commit 8b459e85d5
1 changed files with 3 additions and 3 deletions

View File

@ -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: