diff --git a/python/plugins/processing/gui/TestTools.py b/python/plugins/processing/gui/TestTools.py index eb0a0c3303c..8e863d09d70 100644 --- a/python/plugins/processing/gui/TestTools.py +++ b/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 = {