QGIS/python/plugins/sextante/tests/GeoAlgorithmTest.py

21 lines
656 B
Python
Raw Normal View History

2013-03-01 15:54:01 +01:00
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