Skip to content

Commit

Permalink
Make Travis happy (Python whitespace/formatting)
Browse files Browse the repository at this point in the history
  • Loading branch information
espinafre committed Apr 16, 2020
1 parent 8fbdf2d commit 52c5fb6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/src/python/test_provider_postgres.py
Expand Up @@ -438,7 +438,7 @@ def testPktUpdateBigintPk(self):
self.assertTrue(vl.isValid())

vl.startEditing()

statuses = [1, 1, 1, 1]
# changing values...
for ft in vl.getFeatures():
Expand All @@ -455,7 +455,7 @@ def testPktUpdateBigintPk(self):
vl.changeAttributeValue(ft.id(), flds.indexOf('value'), '-1th value')
statuses[3] = 0
self.assertTrue(vl.commitChanges())
self.assertTrue( all(x == 0 for x in statuses) )
self.assertTrue(all(x == 0 for x in statuses))

# now, let's see if the values were changed
vl2 = QgsVectorLayer('{} sslmode=disable srid=4326 key="pk" table="qgis_test".{} (geom)'.format(self.dbconn, 'bigint_pk'), "bigint_pk", "postgres")
Expand All @@ -479,7 +479,7 @@ def testPktUpdateBigintPkNonFirst(self):
self.assertTrue(vl.isValid())

vl.startEditing()

statuses = [1, 1, 1, 1]
# changing values...
for ft in vl.getFeatures():
Expand All @@ -496,7 +496,7 @@ def testPktUpdateBigintPkNonFirst(self):
vl.changeAttributeValue(ft.id(), flds.indexOf('value'), '-1th value')
statuses[3] = 0
self.assertTrue(vl.commitChanges())
self.assertTrue( all(x == 0 for x in statuses) )
self.assertTrue(all(x == 0 for x in statuses))

# now, let's see if the values were changed
vl2 = QgsVectorLayer('{} sslmode=disable srid=4326 key="pk" table="qgis_test".{} (geom)'.format(self.dbconn, 'bigint_pk'), "bigint_pk", "postgres")
Expand Down

0 comments on commit 52c5fb6

Please sign in to comment.