Skip to content
Permalink
Browse files

Indentation

(cherry-picked from b28e580)
  • Loading branch information
nyalldawson committed Apr 9, 2018
1 parent 2992d6d commit 865968d204e76381167c9ba0ca3deec5efa93018
Showing with 15 additions and 13 deletions.
  1. +15 −13 python/plugins/processing/tests/Grass7AlgorithmsVectorTest.py
@@ -93,18 +93,19 @@ def testMemoryLayerInput(self):
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 @@ def testFeatureSourceInput(self):

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 @@ def testFeatureSourceInput(self):

QgsProject.instance().removeMapLayer(layer)


if __name__ == '__main__':
nose2.main()

0 comments on commit 865968d

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