[processing] removed otb tests

This commit is contained in:
volaya 2017-01-30 11:59:49 +01:00
parent 6002ca749f
commit f94f0d753c
4 changed files with 0 additions and 81 deletions

View File

@ -48,9 +48,7 @@ import processing
from processing.modeler.ModelerAlgorithmProvider import ModelerAlgorithmProvider
from processing.algs.qgis.QGISAlgorithmProvider import QGISAlgorithmProvider
from processing.algs.grass7.Grass7AlgorithmProvider import Grass7AlgorithmProvider
from processing.algs.lidar.LidarToolsAlgorithmProvider import LidarToolsAlgorithmProvider
from processing.algs.gdal.GdalAlgorithmProvider import GdalAlgorithmProvider
from processing.algs.otb.OTBAlgorithmProvider import OTBAlgorithmProvider
from processing.algs.r.RAlgorithmProvider import RAlgorithmProvider
from processing.algs.saga.SagaAlgorithmProvider import SagaAlgorithmProvider
from processing.script.ScriptAlgorithmProvider import ScriptAlgorithmProvider

View File

@ -13,5 +13,4 @@ IF(ENABLE_TESTS)
ADD_PYTHON_TEST(ProcessingGdalAlgorithmsTest GdalAlgorithmsTest.py)
ADD_PYTHON_TEST(ProcessingGrass7AlgorithmsImageryTest Grass7AlgorithmsImageryTest.py)
ADD_PYTHON_TEST(ProcessingGrass7AlgorithmsRasterTest Grass7AlgorithmsRasterTest.py)
ADD_PYTHON_TEST(ProcessingOTBAlgorithmsTest OTBAlgorithmsTest.py)
ENDIF(ENABLE_TESTS)

View File

@ -1,58 +0,0 @@
# -*- coding: utf-8 -*-
"""
***************************************************************************
OTBAlgorithmTests.py
---------------------
Date : August 2016
Copyright : (C) 2016 by Manuel Grizonnet
Email : manuel.grizonnet@cnes.fr
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""
__author__ = 'Manuel Grizonnet'
__date__ = 'August 2016'
__copyright__ = '(C) 2016, Manuel Grizonnet'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = ':%H$'
import AlgorithmsTestBase
import nose2
import shutil
from qgis.testing import (
start_app,
unittest
)
class TestOTBAlgorithms(unittest.TestCase, AlgorithmsTestBase.AlgorithmsTest):
@classmethod
def setUpClass(cls):
start_app()
from processing.core.Processing import Processing
Processing.initialize()
cls.cleanup_paths = []
@classmethod
def tearDownClass(cls):
for path in cls.cleanup_paths:
shutil.rmtree(path)
def test_definition_file(self):
return 'otb_algorithm_tests.yaml'
if __name__ == '__main__':
nose2.main()

View File

@ -1,20 +0,0 @@
# See ../README.md for a description of the file format
tests:
- algorithm: otb:imageconversion
name: Test (otb:imageconversion)
params:
-hcp.high: 2
-hcp.low: 2
-in:
name: raster.tif
type: raster
-ram: 128
-type: '1'
-type.linear.gamma: 1
results:
-out:
hash: b3657f4d848b64f688db41638ea6d86d9de1d0a169bc1bafef8af82a
type: rasterhash