Skip to content

Commit

Permalink
r.stats.quantile: minimalistic testsuite added
Browse files Browse the repository at this point in the history
Triggers #2259
  • Loading branch information
neteler committed Apr 26, 2022
1 parent d76d518 commit edb8738
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions raster/r.stats.quantile/testsuite/test_r_stats_quantile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
from grass.gunittest.case import TestCase
from grass.gunittest.main import test
from grass.gunittest.gmodules import call_module

# TODO: add verification of r.stats.quantile -p output

class TestStatsQuantile(TestCase):

base = "zipcodes"
cover = "elevation"

def setUp(self):
self.use_temp_region()
call_module("g.region", raster="elevation")

def tearDown(self):
self.del_temp_region()
call_module(
"g.remove",
flags="f",
type_="raster",
name=[self.base, self.cover],
)

def test_limits(self):
self.assertModule(
"r.stats.quantile",
base=self.base,
cover=self.cover,
quantiles=3,
flags="p",
)


if __name__ == "__main__":
test()

0 comments on commit edb8738

Please sign in to comment.