Skip to content
Permalink
Browse files

[processing tests] Fix test generation parameter types

  • Loading branch information
m-kuhn committed Mar 15, 2016
1 parent 01c2cfb commit 0e690fc701ff068d5a15619741c75c97efba463a
Showing with 11 additions and 1 deletion.
  1. +11 −1 python/plugins/processing/gui/TestTools.py
@@ -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

0 comments on commit 0e690fc

Please sign in to comment.
You can’t perform that action at this time.