Skip to content

Commit

Permalink
tests for SAGA provider
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Jun 21, 2021
1 parent a0945cf commit fba25dc
Show file tree
Hide file tree
Showing 189 changed files with 1,155 additions and 63 deletions.
10 changes: 0 additions & 10 deletions python/plugins/processing/tests/CMakeLists.txt
Expand Up @@ -5,13 +5,6 @@ PLUGIN_INSTALL(processing tests ${PY_FILES})
PLUGIN_INSTALL(processing tests/testdata ${TEST_DATA_FILES})

if(ENABLE_TESTS)

# enable SAGA tests
set (ENABLE_SAGA_TESTS FALSE CACHE BOOL "Enable Saga tests")
if ( ENABLE_SAGA_TESTS )
add_definitions(-DENABLE_SAGA_TESTS)
endif()

include(UsePythonTest)
ADD_PYTHON_TEST(ProcessingGeneralTest ProcessingGeneralTest.py)
ADD_PYTHON_TEST(ProcessingGuiTest GuiTest.py)
Expand All @@ -29,7 +22,4 @@ if(ENABLE_TESTS)
ADD_PYTHON_TEST(ProcessingGdalAlgorithmsVectorTest GdalAlgorithmsVectorTest.py)
ADD_PYTHON_TEST(ProcessingCheckValidityAlgorithmTest CheckValidityAlgorithm.py)
ADD_PYTHON_TEST(ProcessingScriptUtilsTest ScriptUtilsTest.py)
if(ENABLE_SAGA_TESTS)
ADD_PYTHON_TEST(ProcessingSagaAlgorithmsTest SagaAlgorithmsTest.py)
endif()
endif()
Expand Up @@ -240,7 +240,7 @@ def testOgrOutputLayerName(self):
def testOgrLayerNameExtraction(self):
with tempfile.TemporaryDirectory() as outdir:
def _copyFile(dst):
shutil.copyfile(os.path.join(testDataPath, 'custom', 'grass7', 'weighted.csv'), dst)
shutil.copyfile(os.path.join(testDataPath, 'custom', 'weighted.csv'), dst)

# OGR provider - single layer
_copyFile(os.path.join(outdir, 'a.csv'))
Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified python/plugins/processing/tests/testdata/custom/pol.gpkg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions python/plugins/sagaprovider/CMakeLists.txt
Expand Up @@ -4,6 +4,7 @@ file(GLOB OTHER_FILES metadata.txt)

add_subdirectory(ext)
add_subdirectory(shorthelp)
add_subdirectory(tests)

PLUGIN_INSTALL(sagaprovider . ${PY_FILES} ${OTHER_FILES})
PLUGIN_INSTALL(sagaprovider ./description/ ${DESCR_FILES})

0 comments on commit fba25dc

Please sign in to comment.