mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
21 lines
656 B
Python
21 lines
656 B
Python
|
from sextante.core.Sextante import Sextante
|
||
|
from sextante.modeler.ModelerAlgorithm import ModelerAlgorithm
|
||
|
|
||
|
def testAlg(algname, *args):
|
||
|
|
||
|
#test simple execution
|
||
|
alg = Sextante.runAlgorithm(algname, None, *args)
|
||
|
assert alg is not None
|
||
|
|
||
|
out = alg.getOutputValuesAsDictionary()
|
||
|
|
||
|
return out
|
||
|
|
||
|
#test execution in a model
|
||
|
|
||
|
#===========================================================================
|
||
|
# model = ModelerAlgorithm()
|
||
|
# model.addAlgorithm(alg, parametersMap, valuesMap, outputsMap, dependencies)
|
||
|
#===========================================================================
|
||
|
|
||
|
#test
|