Skip to content
Permalink
Browse files

Make flake8 happy (formatting).

  • Loading branch information
espinafre authored and nyalldawson committed May 25, 2020
1 parent 2512264 commit 72d01502286f52a1a776baf3ac21d77f258cbe1f
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/src/python/test_provider_postgres.py
@@ -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")
@@ -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())

0 comments on commit 72d0150

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