Skip to content

Commit

Permalink
New attempt to pacify Travis (source code formatting).
Browse files Browse the repository at this point in the history
  • Loading branch information
espinafre committed Apr 16, 2020
1 parent 47ea6bd commit 2fae4c4
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):

vl.startEditing()

statuses = [1, 1, 1, 1]
statuses = [-1, -1, -1, -1]
# changing values...
for ft in vl.getFeatures():
if ft['value'] == 'first value':
Expand Down Expand Up @@ -468,7 +468,7 @@ def testPktUpdateBigintPk(self):
statuses[2] = 1
elif ft['value'] == '-1th value':
statuses[3] = 1
self.assertTrue( all ( x == 1 for x in statuses ) )
self.assertTrue(all( x == 1 for x in statuses))

def testPktUpdateBigintPkNonFirst(self):
"""Test if we can update objects with positive, zero and negative bigint PKs in tables whose PK is not the first field"""
Expand All @@ -479,7 +479,7 @@ def testPktUpdateBigintPkNonFirst(self):

vl.startEditing()

statuses = [1, 1, 1, 1]
statuses = [-1, -1, -1, -1]
# changing values...
for ft in vl.getFeatures():
if ft['value'] == 'first value':
Expand Down Expand Up @@ -509,7 +509,7 @@ def testPktUpdateBigintPkNonFirst(self):
statuses[2] = 1
elif ft['value'] == '-1th value':
statuses[3] = 1
self.assertTrue( all ( x == 1 for x in statuses ) )
self.assertTrue(all(x == 1 for x in statuses ))

def testPktMapInsert(self):
vl = QgsVectorLayer('{} table="qgis_test"."{}" key="obj_id" sql='.format(self.dbconn, 'oid_serial_table'), "oid_serial", "postgres")
Expand Down

0 comments on commit 2fae4c4

Please sign in to comment.