mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -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
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
"""Run before all tests"""
|
"""Run before all tests"""
|
||||||
|
os.close(0) # avoid credential requests
|
||||||
|
|
||||||
cls.dbconn = u'dbname=\'qgis_test\''
|
cls.dbconn = u'dbname=\'qgis_test\''
|
||||||
if 'QGIS_PGTEST_DB' in os.environ:
|
if 'QGIS_PGTEST_DB' in os.environ:
|
||||||
cls.dbconn = os.environ['QGIS_PGTEST_DB']
|
cls.dbconn = os.environ['QGIS_PGTEST_DB']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user