Skip to content
Permalink
Browse files

[processing] updated packaging tests

  • Loading branch information
volaya committed Jun 11, 2015
1 parent 3f7b182 commit 61698fc63c658fbe968958881d9fff07f3d6ad1d
Showing with 7 additions and 1 deletion.
  1. +7 −1 python/plugins/processing/tests/PackagingTests.py
@@ -7,13 +7,14 @@
from processing.algs.saga.SagaUtils import *
from processing.core.ProcessingConfig import ProcessingConfig
from processing.algs.grass.GrassUtils import GrassUtils
from processing.algs.otb.OTBUtils import OTBUtils

class PackageTests(unittest.TestCase):

def testSaga(self):
folder = ProcessingConfig.getSetting(SAGA_FOLDER)
ProcessingConfig.removeSetting(SAGA_FOLDER)
self.assertEqual("2.1.4", getSagaInstalledVersion(True))
self.assertTrue(getSagaInstalledVersion(True) in ["2.1.2", "2.1.3", "2.1.4"])
ProcessingConfig.setSettingValue(SAGA_FOLDER, folder)

def testGrass(self):
@@ -23,6 +24,11 @@ def testGrass(self):
self.assertIsNone(msg)
ProcessingConfig.setSettingValue(GrassUtils.GRASS_FOLDER, folder)


def testOtb(self):
folder = OTBUtils.findOtbPath()
self.assertIsNotNone(folder)

def runTests():
t = unittest.TestLoader().loadTestsFromTestCase(PackageTests)
unittest.TextTestRunner(verbosity=3, stream=sys.stdout).run(t)

0 comments on commit 61698fc

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