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 db6daca commit c724983
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions python/plugins/processing/tests/GdalAlgorithmsRasterTest.py
Expand Up @@ -2290,11 +2290,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 @@ -2305,10 +2301,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 @@ -2319,10 +2312,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 @@ -2331,9 +2321,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 @@ -2342,9 +2330,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 c724983

Please sign in to comment.