[GRASS-SVN] r72051 - grass/trunk/raster/r.report/testsuite

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 7 14:44:58 PST 2018


Author: lucadelu
Date: 2018-01-07 14:44:58 -0800 (Sun, 07 Jan 2018)
New Revision: 72051

Modified:
   grass/trunk/raster/r.report/testsuite/test_r_report.py
Log:
r.report: fixed tests using common raster maps

Modified: grass/trunk/raster/r.report/testsuite/test_r_report.py
===================================================================
--- grass/trunk/raster/r.report/testsuite/test_r_report.py	2018-01-07 21:47:42 UTC (rev 72050)
+++ grass/trunk/raster/r.report/testsuite/test_r_report.py	2018-01-07 22:44:58 UTC (rev 72051)
@@ -21,6 +21,7 @@
     def setUpClass(cls):
         """Use temporary region settings"""
         cls.use_temp_region()
+        cls.runModule('g.region', raster='elevation') 
 
 
     @classmethod
@@ -38,8 +39,8 @@
 
 
     def test_flagc(self):
-        """Testing flag 'c' with map aspect"""
-        self.assertModule('r.report', map='aspect', flags='c')
+        """Testing flag 'c' with map elevation"""
+        self.assertModule('r.report', map='elevation', flags='c')
 
 
     def test_flagf(self):
@@ -48,18 +49,18 @@
 
 
     def test_flagh(self):
-        """Testing flag 'h' with map slope"""
-        self.assertModule('r.report', map='slope', flags='h')
+        """Testing flag 'h' with map lakes"""
+        self.assertModule('r.report', map='lakes', flags='h')
 
 
     def test_flagn(self):
-        """Testing flag 'n' with map urban"""
-        self.assertModule('r.report', map='urban', flags='n')
+        """Testing flag 'n' with map elevation"""
+        self.assertModule('r.report', map='elevation', flags='n')
 
 
     def test_flaga(self):
-        """Testing flag 'a' with map zipcodes"""
-        self.assertModule('r.report', map='zipcodes', flags='a')
+        """Testing flag 'a' with map lakes"""
+        self.assertModule('r.report', map='lakes', flags='a')
 
 
     def test_output(self):



More information about the grass-commit mailing list