mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Use service=qgis_test for referencing test database
Makes PostgreSQL testing setup consistent. Updates README accordingly
This commit is contained in:
parent
cbe6150348
commit
46a05727e8
@ -57,9 +57,8 @@ To test the postgres provider you will need to have a database available to
|
||||
which the postgres provider can connect. The server will need to have PostGIS
|
||||
support enabled.
|
||||
|
||||
By default the test uses one of the following connection string:
|
||||
By default the tests use the following connection string:
|
||||
|
||||
dbname=qgis_test
|
||||
service=qgis_test
|
||||
|
||||
If these do not match your setup you can set the environment variable
|
||||
|
@ -39,7 +39,7 @@ class TestPyQgsProviderConnectionPostgres(unittest.TestCase, TestPyQgsProviderCo
|
||||
def setUpClass(cls):
|
||||
"""Run before all tests"""
|
||||
TestPyQgsProviderConnectionBase.setUpClass()
|
||||
cls.postgres_conn = 'dbname=\'qgis_test\''
|
||||
cls.postgres_conn = "service='qgis_test'"
|
||||
if 'QGIS_PGTEST_DB' in os.environ:
|
||||
cls.postgres_conn = os.environ['QGIS_PGTEST_DB']
|
||||
# Create test layers
|
||||
|
Loading…
x
Reference in New Issue
Block a user