mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -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
|
||||
|
||||
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()]
|
||||
|
||||
if isinstance(out, QgsProcessingParameterRasterDestination):
|
||||
|
Loading…
x
Reference in New Issue
Block a user