#2663: Add test for r.watershed module
-------------------------+-------------------------
Reporter: swendel621 | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.1
Component: Default | Version: unspecified
Keywords: | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
I built a test for the r.watershed module to be incorporated into the
software that can be found here:
I committed the test together with few style-related changes in r65145.
Thanks, Stephanie!
I suggest to close the ticket after the the automated run is successful.
For completeness, I'm attaching file with changes between original and the
version I committed and here are also the steps I used for integrating it
and testing it (GRASS GIS session active):
{{{
#!bash
# prepare dir and files
cd raster/r.watershed/
mkdir testsuite
geany r_watershed_test.
# add to svn
cd ..
svn add testsuite
/script/in/addons/tools/module_svn_propset.sh
testsuite/r_watershed_test.py
cd testsuite
# run the test
python r_watershed_test.py
# automatically introduce as much from PEP8 as possible
autopep8 -i r_watershed_test.py
# check the Python style and syntax
pep8 r_watershed_test.py
pylint r_watershed_test.py
# edit the file accordingly
# run the test again
python r_watershed_test.py
# publish changes
svn st
svn commit -m "r.watershed: ..."