Navigation Menu

Skip to content

Commit

Permalink
Indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 9, 2018
1 parent 8b04188 commit b28e580
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions python/plugins/processing/tests/Grass7AlgorithmsVectorTest.py
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand All @@ -169,5 +170,6 @@ def testFeatureSourceInput(self):

QgsProject.instance().removeMapLayer(layer)


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

0 comments on commit b28e580

Please sign in to comment.