Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adapt tests
  • Loading branch information
nicogodet authored and github-actions[bot] committed Apr 29, 2023
1 parent 0dad8bc commit 8992c55
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions python/plugins/processing/tests/GdalAlgorithmsRasterTest.py
Expand Up @@ -2254,11 +2254,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 @@ -2269,10 +2265,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 @@ -2283,10 +2276,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 @@ -2295,9 +2285,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 @@ -2306,9 +2294,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 8992c55

Please sign in to comment.