Skip to content

Commit

Permalink
[processing] updated packaging tests
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Jun 11, 2015
1 parent 3f7b182 commit 61698fc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/plugins/processing/tests/PackagingTests.py
Expand Up @@ -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):
Expand All @@ -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.