mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-24 00:05:18 -05:00
Indentation
This commit is contained in:
parent
8b04188230
commit
b28e580a79
@ -93,18 +93,19 @@ class TestGrass7AlgorithmsVectorTest(unittest.TestCase, AlgorithmsTestBase.Algor
|
||||
alg = QgsApplication.processingRegistry().createAlgorithmById('grass7:v.buffer')
|
||||
self.assertIsNotNone(alg)
|
||||
|
||||
temp_file = os.path.join(self.temp_dir,'grass_output.shp')
|
||||
parameters ={'input':'testmem',
|
||||
'type':[0,1,4],
|
||||
'distance':1,
|
||||
'angle':0,
|
||||
'scale':1,
|
||||
'tolerance':0.01,
|
||||
'-s':False,
|
||||
'-c':False,
|
||||
'-t':False,
|
||||
'output':temp_file,
|
||||
'GRASS_SNAP_TOLERANCE_PARAMETER':-1,'GRASS_MIN_AREA_PARAMETER':0.0001,'GRASS_OUTPUT_TYPE_PARAMETER':0}
|
||||
temp_file = os.path.join(self.temp_dir, 'grass_output.shp')
|
||||
parameters = {'input': 'testmem',
|
||||
'type': [0, 1, 4],
|
||||
'distance': 1,
|
||||
'angle': 0,
|
||||
'scale': 1,
|
||||
'tolerance': 0.01,
|
||||
'-s': False,
|
||||
'-c': False,
|
||||
'-t': False,
|
||||
'output': temp_file,
|
||||
'GRASS_SNAP_TOLERANCE_PARAMETER': -1, 'GRASS_MIN_AREA_PARAMETER': 0.0001,
|
||||
'GRASS_OUTPUT_TYPE_PARAMETER': 0}
|
||||
feedback = QgsProcessingFeedback()
|
||||
|
||||
results, ok = alg.run(parameters, context, feedback)
|
||||
@ -143,7 +144,7 @@ class TestGrass7AlgorithmsVectorTest(unittest.TestCase, AlgorithmsTestBase.Algor
|
||||
|
||||
alg = QgsApplication.processingRegistry().createAlgorithmById('grass7:v.buffer')
|
||||
self.assertIsNotNone(alg)
|
||||
temp_file = os.path.join(self.temp_dir,'grass_output_sel.shp')
|
||||
temp_file = os.path.join(self.temp_dir, 'grass_output_sel.shp')
|
||||
parameters = {'input': QgsProcessingFeatureSourceDefinition('testmem', True),
|
||||
'type': [0, 1, 4],
|
||||
'distance': 1,
|
||||
@ -169,5 +170,6 @@ class TestGrass7AlgorithmsVectorTest(unittest.TestCase, AlgorithmsTestBase.Algor
|
||||
|
||||
QgsProject.instance().removeMapLayer(layer)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
nose2.main()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user