Skip to content

Commit f8d2091

Browse files
committedFeb 15, 2016
avoid credentials requests in PyQgsPostgresProvider
1 parent e7e8d58 commit f8d2091

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎tests/src/python/test_provider_postgres.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class TestPyQgsPostgresProvider(unittest.TestCase, ProviderTestCase):
3333
@classmethod
3434
def setUpClass(cls):
3535
"""Run before all tests"""
36+
os.close(0) # avoid credential requests
37+
3638
cls.dbconn = u'dbname=\'qgis_test\''
3739
if 'QGIS_PGTEST_DB' in os.environ:
3840
cls.dbconn = os.environ['QGIS_PGTEST_DB']

0 commit comments

Comments
 (0)