Skip to content
Permalink
Browse files

add tests for #19824

  • Loading branch information
olivierdalang authored and nyalldawson committed Sep 15, 2018
1 parent 340631f commit 77d7d666d1c2c0cf53f80d848a13238271abfa29
Showing with 7 additions and 0 deletions.
  1. +7 −0 python/plugins/processing/tests/ProjectProvider.py
@@ -100,6 +100,13 @@ def testDelete(self):
self.assertEqual(len(provider.algorithms()), 1)
self.assertEqual(provider.algorithms()[0].name(), 'test name2')

# overwrite model
alg2b = QgsProcessingModelAlgorithm('test name2', 'test group2')
alg2b.setHelpContent({'test': 'test'})
provider.add_model(alg2b)
self.assertEqual(len(provider.algorithms()), 1)
self.assertEqual(provider.algorithms()[0].helpContent(), {'test': 'test'})

provider.remove_model(alg2)
self.assertEqual(len(provider.algorithms()), 0)

0 comments on commit 77d7d66

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