Skip to content


avoid credentials requests in PyQgsPostgresProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 15, 2016
1 parent e7e8d58 commit f8d2091
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/src/python/
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class TestPyQgsPostgresProvider(unittest.TestCase, ProviderTestCase):
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']
Expand Down

0 comments on commit f8d2091

Please sign in to comment.