Skip to content
Permalink
Browse files
fix number
  • Loading branch information
rldhont authored and nyalldawson committed May 4, 2021
1 parent 6a3fad8 commit d8188ec238671fa67dde7df4d15af7ed688ef2ae
Showing with 6 additions and 6 deletions.
  1. +6 −6 python/plugins/processing/tests/ParametersTest.py
@@ -85,7 +85,7 @@ def testParameterStringDesc(self):
self.assertTrue(param.flags() & QgsProcessingParameterDefinition.FlagOptional)

def testParameterNumberDesc(self):
desc = 'QgsProcessingParameterNumber|in_number|Input number'
desc = 'QgsProcessingParameterNumber|in_number|Input Number'
param = getParameterFromString(desc)
self.assertIsNotNone(param)
self.assertEqual(param.type(), 'number')
@@ -94,7 +94,7 @@ def testParameterNumberDesc(self):
self.assertEqual(param.dataType(), QgsProcessingParameterNumber.Integer)
self.assertFalse(param.flags() & QgsProcessingParameterDefinition.FlagOptional)

desc = 'QgsProcessingParameterNumber|in_number|Input number|QgsProcessingParameterNumber.Double'
desc = 'QgsProcessingParameterNumber|in_number|Input Number|QgsProcessingParameterNumber.Double'
param = getParameterFromString(desc)
self.assertIsNotNone(param)
self.assertEqual(param.type(), 'number')
@@ -103,7 +103,7 @@ def testParameterNumberDesc(self):
self.assertEqual(param.dataType(), QgsProcessingParameterNumber.Double)
self.assertFalse(param.flags() & QgsProcessingParameterDefinition.FlagOptional)

desc = 'QgsProcessingParameterNumber|in_number|Input number|QgsProcessingParameterNumber.Integer|10'
desc = 'QgsProcessingParameterNumber|in_number|Input Number|QgsProcessingParameterNumber.Integer|10'
param = getParameterFromString(desc)
self.assertIsNotNone(param)
self.assertEqual(param.type(), 'number')
@@ -113,7 +113,7 @@ def testParameterNumberDesc(self):
self.assertEqual(param.defaultValue(), 10)
self.assertFalse(param.flags() & QgsProcessingParameterDefinition.FlagOptional)

desc = 'QgsProcessingParameterNumber|in_number|Input number|QgsProcessingParameterNumber.Integer|None|True'
desc = 'QgsProcessingParameterNumber|in_number|Input Number|QgsProcessingParameterNumber.Integer|None|True'
param = getParameterFromString(desc)
self.assertIsNotNone(param)
self.assertEqual(param.type(), 'number')
@@ -123,7 +123,7 @@ def testParameterNumberDesc(self):
self.assertIsNone(param.defaultValue())
self.assertTrue(param.flags() & QgsProcessingParameterDefinition.FlagOptional)

desc = 'QgsProcessingParameterNumber|in_number|Input number|QgsProcessingParameterNumber.Integer|10|False|0'
desc = 'QgsProcessingParameterNumber|in_number|Input Number|QgsProcessingParameterNumber.Integer|10|False|0'
param = getParameterFromString(desc)
self.assertIsNotNone(param)
self.assertEqual(param.type(), 'number')
@@ -134,7 +134,7 @@ def testParameterNumberDesc(self):
self.assertFalse(param.flags() & QgsProcessingParameterDefinition.FlagOptional)
self.assertEqual(param.minimum(), 0)

desc = 'QgsProcessingParameterNumber|in_number|Input number|QgsProcessingParameterNumber.Integer|10|False|0|20'
desc = 'QgsProcessingParameterNumber|in_number|Input Number|QgsProcessingParameterNumber.Integer|10|False|0|20'
param = getParameterFromString(desc)
self.assertIsNotNone(param)
self.assertEqual(param.type(), 'number')

0 comments on commit d8188ec

Please sign in to comment.