Browse Source

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

Anna Petrasova 3 years ago
parent
commit
0f4f4b9af3
1 changed files with 5 additions and 1 deletions
  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):
         """Imports test raster(s), ensures expected computational region and setup"""
         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.runModule("g.region", raster=cls.test_objects1)