mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	Fix test
This commit is contained in:
		
							parent
							
								
									95ec307399
								
							
						
					
					
						commit
						1ea60faebd
					
				@ -102,7 +102,10 @@ class TestQgisAlgorithms(unittest.TestCase, AlgorithmsTestBase.AlgorithmsTest):
 | 
			
		||||
            # 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__':
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user