[GRASS-SVN] r69674 - in grass/trunk/temporal: t.connect/testsuite t.rast.neighbors
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 4 06:34:41 PDT 2016
Author: huhabla
Date: 2016-10-04 06:34:38 -0700 (Tue, 04 Oct 2016)
New Revision: 69674
Modified:
grass/trunk/temporal/t.connect/testsuite/test_distr_tgis_db_raster.py
grass/trunk/temporal/t.connect/testsuite/test_distr_tgis_db_vector.py
grass/trunk/temporal/t.rast.neighbors/t.rast.neighbors.py
Log:
temporal modules: Fixed tests
Modified: grass/trunk/temporal/t.connect/testsuite/test_distr_tgis_db_raster.py
===================================================================
--- grass/trunk/temporal/t.connect/testsuite/test_distr_tgis_db_raster.py 2016-10-04 13:12:14 UTC (rev 69673)
+++ grass/trunk/temporal/t.connect/testsuite/test_distr_tgis_db_raster.py 2016-10-04 13:34:38 UTC (rev 69674)
@@ -104,7 +104,7 @@
a3|test1|2001-03-01 00:00:00|2001-04-01 00:00:00"""
trast_list = SimpleModule(
- "t.rast.list", quiet=True, flags="s", input="A at test1")
+ "t.rast.list", quiet=True, flags="u", input="A at test1")
self.assertModule(trast_list)
out = trast_list.outputs["stdout"].value
@@ -117,7 +117,7 @@
a3|test2|2001-05-01 00:00:00|2001-07-01 00:00:00"""
trast_list = SimpleModule(
- "t.rast.list", quiet=True, flags="s", input="A at test2")
+ "t.rast.list", quiet=True, flags="u", input="A at test2")
self.assertModule(trast_list)
out = trast_list.outputs["stdout"].value
@@ -130,7 +130,7 @@
a3|test3|2001-07-01 00:00:00|2001-10-01 00:00:00"""
trast_list = SimpleModule(
- "t.rast.list", quiet=True, flags="s", input="A at test3")
+ "t.rast.list", quiet=True, flags="u", input="A at test3")
self.assertModule(trast_list)
out = trast_list.outputs["stdout"].value
@@ -143,7 +143,7 @@
a3|test4|2001-09-01 00:00:00|2002-01-01 00:00:00"""
trast_list = SimpleModule(
- "t.rast.list", quiet=True, flags="s", input="A at test4")
+ "t.rast.list", quiet=True, flags="u", input="A at test4")
self.assertModule(trast_list)
out = trast_list.outputs["stdout"].value
@@ -156,7 +156,7 @@
a3|test5|2001-11-01 00:00:00|2002-04-01 00:00:00"""
trast_list = SimpleModule(
- "t.rast.list", quiet=True, flags="s", input="A at test5")
+ "t.rast.list", quiet=True, flags="u", input="A at test5")
self.assertModule(trast_list)
out = trast_list.outputs["stdout"].value
@@ -164,7 +164,7 @@
for a, b in zip(list_string.split("\n"), out.split("\n")):
self.assertEqual(a.strip(), b.strip())
- trast_list = SimpleModule("t.rast.list", quiet=True, flags="s",
+ trast_list = SimpleModule("t.rast.list", quiet=True, flags="u",
input="A at test5", output=self.outfile)
self.assertModule(trast_list)
self.assertFileExists(self.outfile)
Modified: grass/trunk/temporal/t.connect/testsuite/test_distr_tgis_db_vector.py
===================================================================
--- grass/trunk/temporal/t.connect/testsuite/test_distr_tgis_db_vector.py 2016-10-04 13:12:14 UTC (rev 69673)
+++ grass/trunk/temporal/t.connect/testsuite/test_distr_tgis_db_vector.py 2016-10-04 13:34:38 UTC (rev 69674)
@@ -102,7 +102,7 @@
a2|testvect1|2001-02-01 00:00:00|2001-03-01 00:00:00
a3|testvect1|2001-03-01 00:00:00|2001-04-01 00:00:00"""
- trast_list = SimpleModule("t.vect.list", quiet=True, flags="s",
+ trast_list = SimpleModule("t.vect.list", quiet=True, flags="u",
columns=[
"name", "mapset", "start_time", "end_time"],
input="A at testvect1")
@@ -118,7 +118,7 @@
a3|testvect2|2001-05-01 00:00:00|2001-07-01 00:00:00"""
trast_list = SimpleModule(
- "t.vect.list", quiet=True, flags="s",
+ "t.vect.list", quiet=True, flags="u",
columns=["name", "mapset", "start_time", "end_time"],
input="A at testvect2")
self.assertModule(trast_list)
@@ -132,7 +132,7 @@
a2|testvect3|2001-04-01 00:00:00|2001-07-01 00:00:00
a3|testvect3|2001-07-01 00:00:00|2001-10-01 00:00:00"""
- trast_list = SimpleModule("t.vect.list", quiet=True, flags="s",
+ trast_list = SimpleModule("t.vect.list", quiet=True, flags="u",
columns=[
"name", "mapset", "start_time", "end_time"],
input="A at testvect3")
@@ -148,7 +148,7 @@
a3|testvect4|2001-09-01 00:00:00|2002-01-01 00:00:00"""
trast_list = SimpleModule(
- "t.vect.list", quiet=True, flags="s",
+ "t.vect.list", quiet=True, flags="u",
columns=["name", "mapset", "start_time", "end_time"],
input="A at testvect4")
self.assertModule(trast_list)
@@ -158,7 +158,7 @@
for a, b in zip(list_string.split("\n"), out.split("\n")):
self.assertEqual(a.strip(), b.strip())
- trast_list = SimpleModule("t.vect.list", quiet=True, flags="s",
+ trast_list = SimpleModule("t.vect.list", quiet=True, flags="u",
columns=["name", "mapset", "start_time", "end_time"],
input="A at testvect4", output=self.outfile)
self.assertModule(trast_list)
Modified: grass/trunk/temporal/t.rast.neighbors/t.rast.neighbors.py
===================================================================
--- grass/trunk/temporal/t.rast.neighbors/t.rast.neighbors.py 2016-10-04 13:12:14 UTC (rev 69673)
+++ grass/trunk/temporal/t.rast.neighbors/t.rast.neighbors.py 2016-10-04 13:34:38 UTC (rev 69674)
@@ -197,7 +197,7 @@
# Open the new space time raster dataset
ttype, stype, title, descr = sp.get_initial_values()
new_sp = tgis.open_new_stds(output, "strds", ttype, title,
- descr, stype, dbif, overwrite)
+ descr, stype, dbif, overwrite)
num_maps = len(new_maps)
# collect empty maps to remove them
empty_maps = []
More information about the grass-commit
mailing list