Skip to content
Permalink
Browse files

Fix test

  • Loading branch information
nyalldawson committed Jan 5, 2020
1 parent 42885bf commit fcdf1f6e7873497b36159bcee772a22637a61304
@@ -121,3 +121,6 @@ def processAlgorithm(self, parameters, context, feedback):
f.write(vrt)

return {self.OUTPUT: vrtPath, self.VRT_STRING: vrt}

def commandName(self):
return ''
@@ -67,12 +67,17 @@ def testCommandName(self):
# Test that algorithms report a valid commandName
p = QgsApplication.processingRegistry().providerById('gdal')
for a in p.algorithms():
if a.id() in ('gdal:buildvirtualvector'):
# build virtual vector is an exception
continue
self.assertTrue(a.commandName(), 'Algorithm {} has no commandName!'.format(a.id()))

def testCommandNameInTags(self):
# Test that algorithms commandName is present in provided tags
p = QgsApplication.processingRegistry().providerById('gdal')
for a in p.algorithms():
if not a.commandName():
continue
self.assertTrue(a.commandName() in a.tags(), 'Algorithm {} commandName not found in tags!'.format(a.id()))

def testNoParameters(self):

0 comments on commit fcdf1f6

Please sign in to comment.
You can’t perform that action at this time.