File tree 1 file changed +5
-5
lines changed
python/plugins/processing/gui
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ def createTest(text):
102
102
definition ['name' ] = 'Test ({})' .format (cmdname )
103
103
definition ['algorithm' ] = cmdname
104
104
105
- params = []
105
+ params = {}
106
106
results = {}
107
107
108
108
i = 0
@@ -123,7 +123,7 @@ def createTest(text):
123
123
if not schema :
124
124
p ['location' ] = '[The source data is not in the testdata directory. Please use data in the processing/tests/testdata folder.]'
125
125
126
- params . append ( p )
126
+ params [ param . name ] = p
127
127
elif isinstance (param , ParameterRaster ):
128
128
filename = token [1 :- 1 ]
129
129
schema , filepath = extractSchemaPath (filename )
@@ -134,7 +134,7 @@ def createTest(text):
134
134
if not schema :
135
135
p ['location' ] = '[The source data is not in the testdata directory. Please use data in the processing/tests/testdata folder.]'
136
136
137
- params . append ( p )
137
+ params [ param . name ] = p
138
138
elif isinstance (param , ParameterMultipleInput ):
139
139
multiparams = token [1 :- 1 ].split (';' )
140
140
newparam = []
@@ -151,9 +151,9 @@ def createTest(text):
151
151
if not schema :
152
152
p ['location' ] = '[The source data is not in the testdata directory. Please use data in the processing/tests/testdata folder.]'
153
153
154
- params . append ( p )
154
+ params [ param . name ] = p
155
155
else :
156
- params . append ( token )
156
+ params [ param . name ] = token
157
157
158
158
definition ['params' ] = params
159
159
You can’t perform that action at this time.
0 commit comments