Skip to content
Permalink
Browse files

[Processing][Test] QgsProcessingParameterRasterDestination descriptio…

…n string
  • Loading branch information
rldhont committed May 4, 2021
1 parent 13bb862 commit 59ab80bb32717c2e474d6d9b592b2a0601099e79
Showing with 10 additions and 0 deletions.
  1. +10 −0 python/plugins/processing/tests/ParametersTest.py
@@ -388,6 +388,16 @@ def testParameterVectorDestDesc(self):
self.assertTrue(param.flags() & QgsProcessingParameterDefinition.FlagOptional)
self.assertFalse(param.createByDefault())

def testParameterRasterDestDesc(self):
desc = 'QgsProcessingParameterRasterDestination|param_raster_dest|Raster Destination'
param = getParameterFromString(desc)
self.assertIsNotNone(param)
self.assertEqual(param.type(), 'rasterDestination')
self.assertEqual(param.name(), 'param_raster_dest')
self.assertEqual(param.description(), 'Raster Destination')
self.assertIsNone(param.defaultValue())
self.assertFalse(param.flags() & QgsProcessingParameterDefinition.FlagOptional)


if __name__ == '__main__':
unittest.main()

0 comments on commit 59ab80b

Please sign in to comment.