[GRASS-dev] [GRASS-SVN] r62770 - grass/trunk/lib/python/pygrass/raster/testsuite

Markus Metz markus.metz.giswork at gmail.com
Mon Nov 17 05:05:47 PST 2014


On Mon, Nov 17, 2014 at 1:05 PM, Markus Neteler <neteler at osgeo.org> wrote:
> Hi Markus,
>
> please revert these changes: nc_spm is not used but nc_basic!

ok, reverted in r62772

According to the manual, tests are based on NC sample data [0], e.g.

python -m grass.gunittest.main --location nc_spm_grass7 --location-type nc

Markus M

[0] http://grass.osgeo.org/grass71/manuals/libpython/gunittest_testing.html

> http://grass.osgeo.org/download/sample-data/
> --> smaller subset NC location:
>       --> GRASS 7 data subset tar.gz | zip (nc_basic...)
>
> Otherwise the online tests will be completely broken.
>
> markusN
>
>
> On Mon, Nov 17, 2014 at 12:43 PM,  <svn_grass at osgeo.org> wrote:
>> Author: mmetz
>> Date: 2014-11-17 03:43:25 -0800 (Mon, 17 Nov 2014)
>> New Revision: 62770
>>
>> Modified:
>>    grass/trunk/lib/python/pygrass/raster/testsuite/test_category.py
>>    grass/trunk/lib/python/pygrass/raster/testsuite/test_history.py
>> Log:
>> pygrass: testsuite raster geology does not exist in nc_spm
>>
>> Modified: grass/trunk/lib/python/pygrass/raster/testsuite/test_category.py
>> ===================================================================
>> --- grass/trunk/lib/python/pygrass/raster/testsuite/test_category.py    2014-11-17 11:34:40 UTC (rev 62769)
>> +++ grass/trunk/lib/python/pygrass/raster/testsuite/test_category.py    2014-11-17 11:43:25 UTC (rev 62770)
>> @@ -14,7 +14,7 @@
>>
>>  class RasterCategoryTestCate(TestCase):
>>
>> -    name = 'geology'
>> +    name = 'geology_30m'
>>      catsname = ''
>>
>>      def testCategory(self):
>>
>> Modified: grass/trunk/lib/python/pygrass/raster/testsuite/test_history.py
>> ===================================================================
>> --- grass/trunk/lib/python/pygrass/raster/testsuite/test_history.py     2014-11-17 11:34:40 UTC (rev 62769)
>> +++ grass/trunk/lib/python/pygrass/raster/testsuite/test_history.py     2014-11-17 11:43:25 UTC (rev 62770)
>> @@ -13,7 +13,7 @@
>>
>>  class RasterHistoryTestCate(TestCase):
>>
>> -    name = 'geology'
>> +    name = 'geology_30m'
>>
>>      def testHistory(self):
>>          r = RasterRow(self.name)
>>
>> _______________________________________________
>> grass-commit mailing list
>> grass-commit at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-commit
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev


More information about the grass-dev mailing list