Skip to content

Commit

Permalink
[processing] add band parameter support in test generator
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy authored and nyalldawson committed Sep 23, 2017
1 parent f60d888 commit afac940
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/processing/gui/TestTools.py
Expand Up @@ -44,6 +44,7 @@
QgsProcessingParameterBoolean,
QgsProcessingParameterNumber,
QgsProcessingParameterFile,
QgsProcessingParameterBand,
QgsProcessingParameterString,
QgsProcessingParameterVectorLayer,
QgsProcessingParameterFeatureSource,
Expand Down Expand Up @@ -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:]
Expand Down

0 comments on commit afac940

Please sign in to comment.