Skip to content
Permalink
Browse files

avoid credentials requests in PyQgsPostgresProvider

  • Loading branch information
jef-n committed Feb 15, 2016
1 parent e7e8d58 commit f8d2091255316aca11ae40eb0f6273bb2003cf5a
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/src/python/test_provider_postgres.py
@@ -33,6 +33,8 @@ class TestPyQgsPostgresProvider(unittest.TestCase, ProviderTestCase):
@classmethod
def setUpClass(cls):
"""Run before all tests"""
os.close(0) # avoid credential requests

cls.dbconn = u'dbname=\'qgis_test\''
if 'QGIS_PGTEST_DB' in os.environ:
cls.dbconn = os.environ['QGIS_PGTEST_DB']

0 comments on commit f8d2091

Please sign in to comment.
You can’t perform that action at this time.