mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
[processing] Fix creating tests when alg has optional outputs
This commit is contained in:
parent
a530b213e9
commit
40f09fab85
@ -246,6 +246,9 @@ def createTest(text):
|
|||||||
definition['params'] = params
|
definition['params'] = params
|
||||||
|
|
||||||
for i, out in enumerate([out for out in alg.destinationParameterDefinitions() if not out.flags() & QgsProcessingParameterDefinition.FlagHidden]):
|
for i, out in enumerate([out for out in alg.destinationParameterDefinitions() if not out.flags() & QgsProcessingParameterDefinition.FlagHidden]):
|
||||||
|
if not out.name() in parameters:
|
||||||
|
continue
|
||||||
|
|
||||||
token = parameters[out.name()]
|
token = parameters[out.name()]
|
||||||
|
|
||||||
if isinstance(out, QgsProcessingParameterRasterDestination):
|
if isinstance(out, QgsProcessingParameterRasterDestination):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user