Skip to content

Commit

Permalink
add tests for #19824
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierdalang authored and nyalldawson committed Sep 15, 2018
1 parent 340631f commit 77d7d66
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/plugins/processing/tests/ProjectProvider.py
Expand Up @@ -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)

Expand Down

0 comments on commit 77d7d66

Please sign in to comment.