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:
parent
e3766519ac
commit
8b459e85d5
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue