[POS-commit] r6341 - stoqlib/trunk/stoqlib/database

Johan Dahlin jdahlin at async.com.br
Fri Apr 6 13:29:25 BRT 2007


Author: jdahlin
Date: Fri Apr  6 13:29:25 2007
New Revision: 6341

Modified:
   stoqlib/trunk/stoqlib/database/testsuite.py

Log:
Use PGHOST and PGPORT


Modified: stoqlib/trunk/stoqlib/database/testsuite.py
==============================================================================
--- stoqlib/trunk/stoqlib/database/testsuite.py	(original)
+++ stoqlib/trunk/stoqlib/database/testsuite.py	Fri Apr  6 13:29:25 2007
@@ -71,8 +71,8 @@
 def _provide_database_settings():
     username = os.environ.get('STOQLIB_TEST_USERNAME',
                               pwd.getpwuid(os.getuid())[0])
-    hostname = os.environ.get('STOQLIB_TEST_HOSTNAME', 'localhost')
-    port = int(os.environ.get('STOQLIB_TEST_PORT', '5432'))
+    hostname = os.environ.get('PGHOST', 'localhost')
+    port = int(os.environ.get('PGPORT', '5432'))
     dbname =  os.environ.get('STOQLIB_TEST_DBNAME',
                              '%s_test' % username)
     password = ''


More information about the POS-commit mailing list