Skip to content
Permalink
Browse files

Update tests/src/python/test_provider_postgres.py

Co-Authored-By: elpaso <elpaso@itopen.it>
  • Loading branch information
luipir and elpaso committed Apr 27, 2019
1 parent da49f79 commit 3a1f6d7774f136122933f8cf335ceef6b64c459a
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/python/test_provider_postgres.py
@@ -1119,7 +1119,7 @@ def testCheckPkUnicityOnView(self):
vl0 = QgsVectorLayer(self.dbconn + ' sslmode=disable key=\'an_int\' srid=0 type=POINT table="qgis_test"."b21839_pk_unicity_view" (geom) sql=', 'test', 'postgres', options)
self.assertTrue(vl0.isValid())

# Valid because a_unique_int is unique
# Valid because a_unique_int is unique and default is to check unicity
vl0 = QgsVectorLayer(self.dbconn + ' sslmode=disable key=\'a_unique_int\' srid=0 type=POINT table="qgis_test"."b21839_pk_unicity_view" (geom) sql=', 'test', 'postgres')
self.assertEqual(vl0.getFeature(1).geometry().asWkt(), geom)

0 comments on commit 3a1f6d7

Please sign in to comment.
You can’t perform that action at this time.