Skip to content

Commit

Permalink
Handle OutputFile in test generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Médéric RIBREUX committed Jun 12, 2016
1 parent 0cd4498 commit b951c94
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/plugins/processing/gui/TestTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
OutputString,
OutputRaster,
OutputVector,
OutputHTML
OutputHTML,
OutputFile
)

from processing.core.parameters import (
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit b951c94

Please sign in to comment.