mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
[processing tests] Fix test generation parameter types
This commit is contained in:
parent
01c2cfbe87
commit
0e690fc701
@ -153,7 +153,17 @@ def createTest(text):
|
||||
|
||||
params[param.name] = p
|
||||
else:
|
||||
params[param.name] = token
|
||||
try:
|
||||
params[param.name] = int(token)
|
||||
except ValueError:
|
||||
try:
|
||||
params[param.name] = float(token)
|
||||
except ValueError:
|
||||
if token[0] == '"':
|
||||
token = token[1:]
|
||||
if token[-1] == '"':
|
||||
token = token[:-1]
|
||||
params[param.name] = token
|
||||
|
||||
definition['params'] = params
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user