From b28e580a79f84baa4e76d08a9edc43afed010d5b Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Sun, 8 Apr 2018 11:29:47 +1000 Subject: [PATCH] Indentation --- .../tests/Grass7AlgorithmsVectorTest.py | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/python/plugins/processing/tests/Grass7AlgorithmsVectorTest.py b/python/plugins/processing/tests/Grass7AlgorithmsVectorTest.py index df445d261c3..1a92882889d 100644 --- a/python/plugins/processing/tests/Grass7AlgorithmsVectorTest.py +++ b/python/plugins/processing/tests/Grass7AlgorithmsVectorTest.py @@ -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()