Skip to content
Permalink
Browse files

Expand external file support to graphical unit test generator

  • Loading branch information
Médéric Ribreux Médéric RIBREUX
Médéric Ribreux authored and Médéric RIBREUX committed May 6, 2016
1 parent 1f21af6 commit 222935b45fda9f006ab51daaf3cd9f397a745421
Showing with 13 additions and 1 deletion.
  1. +13 −1 python/plugins/processing/gui/TestTools.py
@@ -47,7 +47,8 @@
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:

0 comments on commit 222935b

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