mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-29 00:03:59 -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):
|
elif isinstance(param, ParameterMultipleInput):
|
||||||
multiparams = token[1:-1].split(';')
|
multiparams = token[1:-1].split(';')
|
||||||
newparam = []
|
newparam = []
|
||||||
|
|
||||||
|
# Handle datatype detection
|
||||||
|
dataType = param.dataType()
|
||||||
|
if dataType in ['points', 'lines', 'polygons', 'any vectors']:
|
||||||
|
dataType = 'vector'
|
||||||
|
else:
|
||||||
|
dataType = 'raster'
|
||||||
|
|
||||||
for mp in multiparams:
|
for mp in multiparams:
|
||||||
schema, filepath = extractSchemaPath(mp)
|
schema, filepath = extractSchemaPath(mp)
|
||||||
newparam.append({
|
newparam.append({
|
||||||
'type': 'vector',
|
'type': dataType,
|
||||||
'name': filepath
|
'name': filepath
|
||||||
})
|
})
|
||||||
p = {
|
p = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user