mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
avoid credentials requests in PyQgsPostgresProvider
This commit is contained in:
parent
e7e8d58aa8
commit
f8d2091255
@ -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']
|
||||
|
Loading…
x
Reference in New Issue
Block a user