Skip to content

Commit 48d45fb

Browse files
Médéric RibreuxMédéric RIBREUX
Médéric Ribreux
authored and
Médéric RIBREUX
committed
Fix multiple input parameter type detection for graphical unit test generator
1 parent 222935b commit 48d45fb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

python/plugins/processing/gui/TestTools.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,18 @@ def createTest(text):
139139
elif isinstance(param, ParameterMultipleInput):
140140
multiparams = token[1:-1].split(';')
141141
newparam = []
142+
143+
# Handle datatype detection
144+
dataType = param.dataType()
145+
if dataType in ['points', 'lines', 'polygons', 'any vectors']:
146+
dataType = 'vector'
147+
else:
148+
dataType = 'raster'
149+
142150
for mp in multiparams:
143151
schema, filepath = extractSchemaPath(mp)
144152
newparam.append({
145-
'type': 'vector',
153+
'type': dataType,
146154
'name': filepath
147155
})
148156
p = {

0 commit comments

Comments
 (0)