We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent c7ac866 commit af06cf0Copy full SHA for af06cf0
python/plugins/processing/gui/TestTools.py
@@ -135,7 +135,14 @@ def splitAlgIdAndParameters(command):
135
"""
136
exp = re.compile(r"""['"](.*?)['"]\s*,\s*(.*)""")
137
m = exp.search(command[len('processing.run('):-1])
138
- return m.group(1), ast.literal_eval(m.group(2))
+ alg_id = m.group(1)
139
+ params = m.group(2)
140
+
141
+ # replace QgsCoordinateReferenceSystem('EPSG:4325') with just string value
142
+ exp = re.compile(r"""QgsCoordinateReferenceSystem\((['"].*?['"])\)""")
143
+ params = exp.sub('\\1', params)
144
145
+ return alg_id, ast.literal_eval(params)
146
147
148
def createTest(text):
0 commit comments