Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adapt tests
  • Loading branch information
nicogodet authored and nyalldawson committed Apr 29, 2023
1 parent 77ddb28 commit dd7b8ac
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions python/plugins/processing/tests/GdalAlgorithmsRasterTest.py
Expand Up @@ -2288,11 +2288,7 @@ def testFillnodata(self):
'NO_MASK': False,
'OUTPUT': outsource}, context, feedback),
['gdal_fillnodata.py',
'-md 10 -b 1 -mask ' +
mask +
' -of GTiff ' +
source + ' ' +
outsource])
f'{source} {outsource} -md 10 -b 1 -mask {mask} -of GTiff'])

# without mask value
self.assertEqual(
Expand All @@ -2303,10 +2299,7 @@ def testFillnodata(self):
'NO_MASK': False,
'OUTPUT': outsource}, context, feedback),
['gdal_fillnodata.py',
'-md 10 -b 1 ' +
'-of GTiff ' +
source + ' ' +
outsource])
f'{source} {outsource} -md 10 -b 1 -of GTiff'])

# nomask true
self.assertEqual(
Expand All @@ -2317,10 +2310,7 @@ def testFillnodata(self):
'NO_MASK': True,
'OUTPUT': outsource}, context, feedback),
['gdal_fillnodata.py',
'-md 10 -b 1 -nomask ' +
'-of GTiff ' +
source + ' ' +
outsource])
f'{source} {outsource} -md 10 -b 1 -nomask -of GTiff'])

# creation options
self.assertEqual(
Expand All @@ -2329,9 +2319,7 @@ def testFillnodata(self):
'OPTIONS': 'COMPRESS=JPEG|JPEG_QUALITY=75',
'OUTPUT': outsource}, context, feedback),
['gdal_fillnodata.py',
'-md 10 -b 1 -of GTiff -co COMPRESS=JPEG -co JPEG_QUALITY=75 ' +
source + ' ' +
outsource])
f'{source} {outsource} -md 10 -b 1 -of GTiff -co COMPRESS=JPEG -co JPEG_QUALITY=75'])

# additional parameters
self.assertEqual(
Expand All @@ -2340,9 +2328,7 @@ def testFillnodata(self):
'EXTRA': '-q',
'OUTPUT': outsource}, context, feedback),
['gdal_fillnodata.py',
'-md 10 -b 1 -of GTiff -q ' +
source + ' ' +
outsource])
f'{source} {outsource} -md 10 -b 1 -of GTiff -q'])

def testGdalAddo(self):
context = QgsProcessingContext()
Expand Down

0 comments on commit dd7b8ac

Please sign in to comment.