Skip to content
Permalink
Browse files

Fix multiple input parameter type detection for graphical unit test g…

…enerator
  • Loading branch information
Médéric Ribreux Médéric RIBREUX
Médéric Ribreux authored and Médéric RIBREUX committed May 6, 2016
1 parent 222935b commit 48d45fbd2244df063703d0164875dc2eebd11d5c
Showing with 9 additions and 1 deletion.
  1. +9 −1 python/plugins/processing/gui/TestTools.py
@@ -139,10 +139,18 @@ def createTest(text):
elif isinstance(param, ParameterMultipleInput):
multiparams = token[1:-1].split(';')
newparam = []

# Handle datatype detection
dataType = param.dataType()
if dataType in ['points', 'lines', 'polygons', 'any vectors']:
dataType = 'vector'
else:
dataType = 'raster'

for mp in multiparams:
schema, filepath = extractSchemaPath(mp)
newparam.append({
'type': 'vector',
'type': dataType,
'name': filepath
})
p = {

0 comments on commit 48d45fb

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