Skip to content

Commit

Permalink
r.report: fixed tests using common raster maps
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72051 15284696-431f-4ddb-bdfa-cd5b030d7da7
  • Loading branch information
lucadelu committed Jan 7, 2018
1 parent ca3407d commit 807b946
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions raster/r.report/testsuite/test_r_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class TestRasterreport(TestCase):
def setUpClass(cls):
"""Use temporary region settings"""
cls.use_temp_region()
cls.runModule('g.region', raster='elevation')


@classmethod
Expand All @@ -38,8 +39,8 @@ def test_flage(self):


def test_flagc(self):
"""Testing flag 'c' with map aspect"""
self.assertModule('r.report', map='aspect', flags='c')
"""Testing flag 'c' with map elevation"""
self.assertModule('r.report', map='elevation', flags='c')


def test_flagf(self):
Expand All @@ -48,18 +49,18 @@ def test_flagf(self):


def test_flagh(self):
"""Testing flag 'h' with map slope"""
self.assertModule('r.report', map='slope', flags='h')
"""Testing flag 'h' with map lakes"""
self.assertModule('r.report', map='lakes', flags='h')


def test_flagn(self):
"""Testing flag 'n' with map urban"""
self.assertModule('r.report', map='urban', flags='n')
"""Testing flag 'n' with map elevation"""
self.assertModule('r.report', map='elevation', flags='n')


def test_flaga(self):
"""Testing flag 'a' with map zipcodes"""
self.assertModule('r.report', map='zipcodes', flags='a')
"""Testing flag 'a' with map lakes"""
self.assertModule('r.report', map='lakes', flags='a')


def test_output(self):
Expand Down

0 comments on commit 807b946

Please sign in to comment.