Skip to content
Permalink
Browse files

[processing] add band parameter support in test generator

  • Loading branch information
alexbruy authored and nyalldawson committed Sep 23, 2017
1 parent f60d888 commit afac940d37a8e568afe460a6fa6b3e27813d0d9f
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/processing/gui/TestTools.py
@@ -44,6 +44,7 @@
QgsProcessingParameterBoolean,
QgsProcessingParameterNumber,
QgsProcessingParameterFile,
QgsProcessingParameterBand,
QgsProcessingParameterString,
QgsProcessingParameterVectorLayer,
QgsProcessingParameterFeatureSource,
@@ -234,6 +235,8 @@ def createTest(text):
params[param.name()] = [int(t) for t in token]
else:
params[param.name()] = int(token)
elif isinstance(param, QgsProcessingParameterBand):
params[param.name()] = int(token)
elif token:
if token[0] == '"':
token = token[1:]

0 comments on commit afac940

Please sign in to comment.
You can’t perform that action at this time.