mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Fix multiple input parameter type detection for graphical unit test generator
This commit is contained in:
parent
222935b45f
commit
48d45fbd22
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user