Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add tests
  • Loading branch information
nicogodet authored and github-actions[bot] committed Oct 6, 2021
1 parent b0f080e commit 6a27872
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions python/plugins/processing/tests/GdalAlgorithmsRasterTest.py
Expand Up @@ -1734,6 +1734,22 @@ def testRetile(self):
'-ps 256 256 -overlap 0 -levels 1 -r near -ot Float32 -v -tileIndex tindex.shp -targetDir {} '.format(outdir) +
source])

self.assertEqual(
alg.getConsoleCommands({'INPUT': [source],
'ONLY_PYRAMIDS': True,
'OUTPUT': outdir}, context, feedback),
['gdal_retile.py',
'-ps 256 256 -overlap 0 -levels 1 -r near -ot Float32 -pyramidOnly -targetDir {} '.format(outdir) +
source])

self.assertEqual(
alg.getConsoleCommands({'INPUT': [source],
'DIR_FOR_ROW': True,
'OUTPUT': outdir}, context, feedback),
['gdal_retile.py',
'-ps 256 256 -overlap 0 -levels 1 -r near -ot Float32 -useDirForEachRow -targetDir {} '.format(outdir) +
source])

def testWarp(self):
context = QgsProcessingContext()
feedback = QgsProcessingFeedback()
Expand Down

0 comments on commit 6a27872

Please sign in to comment.