Skip to content
Permalink
Browse files

Fix test

  • Loading branch information
nyalldawson committed Mar 10, 2020
1 parent 95ec307 commit 1ea60faebdb398660e0500de4aebccc6b58bb0d9
Showing with 4 additions and 1 deletion.
  1. +4 −1 python/plugins/processing/tests/QgisAlgorithmsTest1.py
@@ -102,7 +102,10 @@ def testParameterPythonImport(self):
# check that pythonImportString correctly imports
exec(import_string)
# and now we should be able to instantiate an object!
exec('test = {}(\'id\',\'name\')\nself.assertIsNotNone(test)'.format(t.className()))
if t.className() == 'QgsProcessingParameterProviderConnection':
exec('test = {}(\'id\',\'name\', \'provider\')\nself.assertIsNotNone(test)'.format(t.className()))
else:
exec('test = {}(\'id\',\'name\')\nself.assertIsNotNone(test)'.format(t.className()))


if __name__ == '__main__':

0 comments on commit 1ea60fa

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