Python/pygrass: Difference between revisions
< Python
m (add other test of doctest) |
m (add another pygrass test) |
||
Line 24: | Line 24: | ||
* vector/basic.py | * vector/basic.py | ||
* vector/table.py | * vector/table.py | ||
* raster/abstract.py | |||
==== Not working ==== | ==== Not working ==== |
Revision as of 17:37, 13 February 2013
pygrass is a library that extends the GRASS capabilities to allow users to access the low-level GRASS API.
How to test library
pygrass has doctest inside its code. You can run doctest inside the North Carolina basic location, using the mapset user1.
To test the single module (file) you have to move to the source code of pygrass and run the following code (this is an example of functions.py):
python -m doctest functions.py
Already tested modules
Working
- functions.py
- gis/region.py
- gis/__init__.py
- vector/abstract.py
- vector/__init__.py
- vector/basic.py
- vector/table.py
- raster/abstract.py
Not working
- vector/geometry.py