瀏覽代碼

r.object.geometry test: explicitely specify CELL type in r.in.ascii (#2265)

Anna Petrasova 3 年之前
父節點
當前提交
0f4f4b9af3
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      raster/r.object.geometry/testsuite/r_object_geometry_test.py

+ 5 - 1
raster/r.object.geometry/testsuite/r_object_geometry_test.py

@@ -84,7 +84,11 @@ class TestObjectGeometryMeter(TestCase):
     def setUpClass(cls):
     def setUpClass(cls):
         """Imports test raster(s), ensures expected computational region and setup"""
         """Imports test raster(s), ensures expected computational region and setup"""
         cls.runModule(
         cls.runModule(
-            "r.in.ascii", input="-", stdin_=testraster1, output=cls.test_objects1
+            "r.in.ascii",
+            input="-",
+            type="CELL",
+            stdin_=testraster1,
+            output=cls.test_objects1,
         )
         )
         cls.use_temp_region()
         cls.use_temp_region()
         cls.runModule("g.region", raster=cls.test_objects1)
         cls.runModule("g.region", raster=cls.test_objects1)