Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicogodet authored and nyalldawson committed Oct 6, 2021
1 parent f6e20c3 commit 09cfa8a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions python/plugins/processing/tests/GdalAlgorithmsRasterTest.py
Expand Up @@ -1764,6 +1764,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 09cfa8a

Please sign in to comment.