Skip to content

Commit

Permalink
Make flake8 happy (formatting).
Browse files Browse the repository at this point in the history
  • Loading branch information
espinafre authored and nyalldawson committed Jun 2, 2020
1 parent 2512264 commit 72d0150
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/python/test_provider_postgres.py
Expand Up @@ -566,7 +566,7 @@ def testGeneratedFields(self):
# reading back
vl2 = QgsVectorLayer('{} table="qgis_test"."{}" (geom) srid=4326 type=POLYGON key="id" sql='.format(self.dbconn, "test_gen_col"), "test_gen_col", "postgres")
f2 = next(vl2.getFeatures(QgsFeatureRequest()))
self.assertEqual(f2['poly_area'], expected_area) # this, and not 42
self.assertEqual(f2['poly_area'], expected_area)

# now, getting a brand new QgsVectorLayer to check if changes (UPDATE) in the geometry are reflected in the generated fields
vl = QgsVectorLayer('{} table="qgis_test"."{}" (geom) srid=4326 type=POLYGON key="id" sql='.format(self.dbconn, "test_gen_col"), "test_gen_col", "postgres")
Expand All @@ -590,7 +590,7 @@ def testGeneratedFields(self):
self.assertEqual(f2['poly_area'], expected_area)
self.assertEqual(f2['name'], 'New')

### Geography columns
# Geography columns
vl3 = QgsVectorLayer('{} table="qgis_test"."{}" (geog) srid=4326 type=POLYGON key="id" sql='.format(self.dbconn, "test_gen_geog_col"), "test_gen_geog_col", "postgres")
self.assertTrue(vl3.isValid())

Expand Down

0 comments on commit 72d0150

Please sign in to comment.