Skip to content

Commit

Permalink
Update tests/src/python/test_provider_postgres.py
Browse files Browse the repository at this point in the history
Co-Authored-By: elpaso <elpaso@itopen.it>
  • Loading branch information
luipir and elpaso committed Apr 27, 2019
1 parent da49f79 commit 3a1f6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/python/test_provider_postgres.py
Expand Up @@ -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)

Expand Down

0 comments on commit 3a1f6d7

Please sign in to comment.