fix snakemake error introduced after v7.7.0

This commit is contained in:
Philipp Glaum 2022-06-20 12:45:28 +02:00
parent 93827ace1c
commit 5df588ccb8

View File

@ -240,7 +240,7 @@ def mock_snakemake(rulename, **wildcards):
if os.path.exists(p):
snakefile = p
break
workflow = sm.Workflow(snakefile, overwrite_configfiles=[])
workflow = sm.Workflow(snakefile, overwrite_configfiles=[], rerun_triggers=[])
workflow.include(snakefile)
workflow.global_resources = {}
rule = workflow.get_rule(rulename)