mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Handle OutputFile in test generation
This commit is contained in:
parent
0cd4498658
commit
b951c94746
@ -44,7 +44,8 @@ from processing.core.outputs import (
|
||||
OutputString,
|
||||
OutputRaster,
|
||||
OutputVector,
|
||||
OutputHTML
|
||||
OutputHTML,
|
||||
OutputFile
|
||||
)
|
||||
|
||||
from processing.core.parameters import (
|
||||
@ -235,7 +236,7 @@ def createTest(text):
|
||||
}
|
||||
if not schema:
|
||||
results[out.name]['location'] = '[The expected result data is not in the testdata directory. Please write it to processing/tests/testdata/expected. Prefer gml files.]'
|
||||
elif isinstance(out, OutputHTML):
|
||||
elif isinstance(out, OutputHTML) or isinstance(out, OutputFile):
|
||||
schema, filepath = extractSchemaPath(token)
|
||||
results[out.name] = {
|
||||
'type': 'file',
|
||||
|
Loading…
x
Reference in New Issue
Block a user