Skip to content

Commit

Permalink
Fix some issues when creating processing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 20, 2017
1 parent 2a6847e commit 99fd727
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/plugins/processing/gui/TestTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ def createTest(text):
if param.flags() & QgsProcessingParameterDefinition.FlagHidden or param.isDestination():
continue

if not param.name() in parameters:
continue

i += 1
token = parameters[param.name()]
# Handle empty parameters that are optionals
Expand Down Expand Up @@ -180,7 +183,7 @@ def createTest(text):

params[param.name()] = p
elif isinstance(param, QgsProcessingParameterMultipleLayers):
multiparams = token.split(';')
multiparams = token
newparam = []

# Handle datatype detection
Expand Down

0 comments on commit 99fd727

Please sign in to comment.