From 61698fc63c658fbe968958881d9fff07f3d6ad1d Mon Sep 17 00:00:00 2001 From: volaya Date: Thu, 11 Jun 2015 09:28:02 +0200 Subject: [PATCH] [processing] updated packaging tests --- python/plugins/processing/tests/PackagingTests.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python/plugins/processing/tests/PackagingTests.py b/python/plugins/processing/tests/PackagingTests.py index 348c0dde457..32d2e9a378c 100644 --- a/python/plugins/processing/tests/PackagingTests.py +++ b/python/plugins/processing/tests/PackagingTests.py @@ -7,13 +7,14 @@ import sys 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 @@ class PackageTests(unittest.TestCase): 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) \ No newline at end of file