Skip to content
Permalink
Browse files

Handle OutputFile in test generation

  • Loading branch information
Médéric RIBREUX
Médéric RIBREUX committed Jun 12, 2016
1 parent 0cd4498 commit b951c94746f71cd2c97d29a9d7c2852356de0456
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/plugins/processing/gui/TestTools.py
@@ -44,7 +44,8 @@
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',

0 comments on commit b951c94

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