[GRASS-SVN] r61180 - grass/trunk/lib/python/temporal/testsuite
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 7 16:00:27 PDT 2014
Author: huhabla
Date: 2014-07-07 16:00:27 -0700 (Mon, 07 Jul 2014)
New Revision: 61180
Modified:
grass/trunk/lib/python/temporal/testsuite/unittests_register.py
Log:
PyGRASS module run error workaround implemented
Modified: grass/trunk/lib/python/temporal/testsuite/unittests_register.py
===================================================================
--- grass/trunk/lib/python/temporal/testsuite/unittests_register.py 2014-07-07 22:49:16 UTC (rev 61179)
+++ grass/trunk/lib/python/temporal/testsuite/unittests_register.py 2014-07-07 23:00:27 UTC (rev 61180)
@@ -22,19 +22,19 @@
"""!Initiate the temporal GIS and set the region
"""
# Use always the current mapset as temporal database
- cls.runModule("g.gisenv", set="TGIS_USE_CURRENT_MAPSET=1")
+ grass.run_command("g.gisenv", set="TGIS_USE_CURRENT_MAPSET=1")
tgis.init()
grass.overwrite = True
grass.use_temp_region()
- cls.runModule("g.region", n=80.0, s=0.0, e=120.0,
+ grass.run_command("g.region", n=80.0, s=0.0, e=120.0,
w=0.0, t=1.0, b=0.0, res=10.0)
def setUp(self):
"""!Create the test maps and the space time raster datasets
"""
- self.runModule("r.mapcalc", overwrite=True, quiet=True,
+ self.assertModule("r.mapcalc", overwrite=True, quiet=True,
expression="register_map_1 = 1")
- self.runModule("r.mapcalc", overwrite=True, quiet=True,
+ self.assertModule("r.mapcalc", overwrite=True, quiet=True,
expression="register_map_2 = 2")
self.strds_abs = tgis.open_new_stds(name="register_test_abs", type="strds", temporaltype="absolute",
More information about the grass-commit
mailing list