[GRASS-SVN] r38171 - grass-addons/vector/v.in.postgis
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jul 2 12:13:59 EDT 2009
Author: mathieug
Date: 2009-07-02 12:13:59 -0400 (Thu, 02 Jul 2009)
New Revision: 38171
Modified:
grass-addons/vector/v.in.postgis/v_in_postgis_tests.py
Log:
python implementation - unit test module - renamed module
Modified: grass-addons/vector/v.in.postgis/v_in_postgis_tests.py
===================================================================
--- grass-addons/vector/v.in.postgis/v_in_postgis_tests.py 2009-07-02 16:08:10 UTC (rev 38170)
+++ grass-addons/vector/v.in.postgis/v_in_postgis_tests.py 2009-07-02 16:13:59 UTC (rev 38171)
@@ -255,15 +255,15 @@
currentDirectory = os.path.split(__file__)[0]
sys.path.append(currentDirectory)
from v_in_postgis import GrassPostGisImporter
- ##test configuration
options = {'query':'', 'geometryfield':'', 'output':''}
flags = {'d':0, 'z':0, 'o':0, 'g':0, 'l':0}
importer = GrassPostGisImporter(options, flags)
module = __import__('v_in_postgis_tests')
+ ##test configuration
host = 'localhost'
- dbname = 'serveur_donnees_meteo'
- user = 'postgres'
- pwd = 'rootnculture'
+ dbname = 'yourdb'
+ user = 'yourusername'
+ pwd = 'yourpwd'
db = dbapi2.connect(host=host, database=dbname, user=user, password=pwd)
cursor = db.cursor()
testTableName = 'test_grass_import'
More information about the grass-commit
mailing list