Skip to content

Commit

Permalink
Fix multiple input parameter type detection for graphical unit test g…
Browse files Browse the repository at this point in the history
…enerator
  • Loading branch information
Médéric Ribreux authored and Médéric RIBREUX committed May 29, 2016
1 parent 222935b commit 48d45fb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion python/plugins/processing/gui/TestTools.py
Expand Up @@ -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 = {
Expand Down

0 comments on commit 48d45fb

Please sign in to comment.