Skip to content

Commit

Permalink
[processing] Fix creating tests when alg has optional outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 23, 2018
1 parent a530b21 commit 40f09fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/processing/gui/TestTools.py
Expand Up @@ -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):
Expand Down

0 comments on commit 40f09fa

Please sign in to comment.