[GRASS-SVN] r73913 - grass/branches/releasebranch_7_6/raster/r.reclass/testsuite
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 4 16:01:42 PST 2019
Author: neteler
Date: 2019-01-04 16:01:42 -0800 (Fri, 04 Jan 2019)
New Revision: 73913
Modified:
grass/branches/releasebranch_7_6/raster/r.reclass/testsuite/test_r_reclass.py
Log:
r.reclass/testsuite: fix TabError: inconsistent use of tabs and spaces in indentation; tabs are to be avoided by editor configuration, see https://trac.osgeo.org/grass/wiki/Submitting/Python#Editorsettingsfor4-spaceindentation (#3709)
Modified: grass/branches/releasebranch_7_6/raster/r.reclass/testsuite/test_r_reclass.py
===================================================================
--- grass/branches/releasebranch_7_6/raster/r.reclass/testsuite/test_r_reclass.py 2019-01-05 00:00:17 UTC (rev 73912)
+++ grass/branches/releasebranch_7_6/raster/r.reclass/testsuite/test_r_reclass.py 2019-01-05 00:01:42 UTC (rev 73913)
@@ -37,7 +37,7 @@
@classmethod
def setUpClass(cls):
cls.use_temp_region()
- cls.runModule('g.region', raster=cls.input)
+ cls.runModule('g.region', raster=cls.input)
@classmethod
def tearDownClass(cls):
@@ -48,37 +48,37 @@
def test_rules1(self):
"""Testing rules 1 """
- reclass = SimpleModule('r.reclass', input=self.input, output=self.output,
+ reclass = SimpleModule('r.reclass', input=self.input, output=self.output,
rules='-')
reclass.inputs.stdin = rules1
self.assertModule(reclass)
- info = 'min=1\nmax=2\ndatatype=CELL'
+ info = 'min=1\nmax=2\ndatatype=CELL'
self.assertRasterFitsInfo(raster='reclass', reference=info)
def test_rules2(self):
"""Testing Rules2"""
- reclass = SimpleModule('r.reclass', input=self.input, output=self.output,
+ reclass = SimpleModule('r.reclass', input=self.input, output=self.output,
rules='-')
reclass.inputs.stdin = rules2
self.assertModule(reclass)
- info = 'min=1\nmax=2\ndatatype=CELL'
+ info = 'min=1\nmax=2\ndatatype=CELL'
self.assertRasterFitsInfo(raster='reclass', reference=info)
def test_rules3(self):
"""Testing rules3"""
- reclass = SimpleModule('r.reclass', input=self.input, output=self.output,
+ reclass = SimpleModule('r.reclass', input=self.input, output=self.output,
rules='-')
reclass.inputs.stdin = rules3
self.assertModule(reclass)
- info = 'min=1\nmax=3\ndatatype=CELL'
+ info = 'min=1\nmax=3\ndatatype=CELL'
self.assertRasterFitsInfo(raster='reclass', reference=info)
def test_rules4(self):
"""Testing rules with external file"""
- reclass = SimpleModule('r.reclass', input=self.input, output=self.output,
+ reclass = SimpleModule('r.reclass', input=self.input, output=self.output,
rules='data/rules.txt')
self.assertModule(reclass)
- info = 'min=1\nmax=3\ndatatype=CELL'
+ info = 'min=1\nmax=3\ndatatype=CELL'
self.assertRasterFitsInfo(raster='reclass', reference=info)
if __name__ == '__main__':
More information about the grass-commit
mailing list