mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Expand external file support to graphical unit test generator
This commit is contained in:
parent
1f21af6672
commit
222935b45f
@ -47,7 +47,8 @@ from processing.core.outputs import (
|
||||
from processing.core.parameters import (
|
||||
ParameterRaster,
|
||||
ParameterVector,
|
||||
ParameterMultipleInput
|
||||
ParameterMultipleInput,
|
||||
ParameterFile
|
||||
)
|
||||
|
||||
|
||||
@ -151,6 +152,17 @@ def createTest(text):
|
||||
if not schema:
|
||||
p['location'] = '[The source data is not in the testdata directory. Please use data in the processing/tests/testdata folder.]'
|
||||
|
||||
params[param.name] = p
|
||||
elif isinstance(param, ParameterFile):
|
||||
filename = token[1:-1]
|
||||
schema, filepath = extractSchemaPath(filename)
|
||||
p = {
|
||||
'type': 'file',
|
||||
'name': filepath
|
||||
}
|
||||
if not schema:
|
||||
p['location'] = '[The source data is not in the testdata directory. Please use data in the processing/tests/testdata folder.]'
|
||||
|
||||
params[param.name] = p
|
||||
else:
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user