Skip to content
Permalink
Browse files

Python formatting.

  • Loading branch information
espinafre committed Jun 23, 2020
1 parent 0da7184 commit e8b0d827112d600ed56ee181da17145e8e256962
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/src/python/test_provider_postgres.py
@@ -965,7 +965,7 @@ def testPktFloatingPoint(self):
assert compareWkt(f2.geometry().asWkt(), newpointwkt), "Geometry mismatch. Expected: {} Got: {} \n".format(f2.geometry().asWkt(), newpointwkt)
# One more check: can we retrieve the same row with the value that we got from this layer?
floatpk = f2['pk']
f3 = next(vl.getFeatures(QgsFeatureRequest().setFilterExpression('pk = {}'.format(floatpk) )))
f3 = next(vl.getFeatures(QgsFeatureRequest().setFilterExpression('pk = {}'.format(floatpk))))
self.assertTrue(f3.isValid())
self.assertEqual(f3['value'], 'newly inserted')
self.assertEqual(f3['pk'], floatpk)
@@ -1021,7 +1021,7 @@ def testPktFloatingPoint(self):
assert compareWkt(f2.geometry().asWkt(), newpointwkt), "Geometry mismatch. Expected: {} Got: {} \n".format(f2.geometry().asWkt(), newpointwkt)
# One more check: can we retrieve the same row with the value that we got from this layer?
doublepk = f2['pk']
f3 = next(vl.getFeatures(QgsFeatureRequest().setFilterExpression('pk = {}'.format(doublepk) )))
f3 = next(vl.getFeatures(QgsFeatureRequest().setFilterExpression('pk = {}'.format(doublepk))))
self.assertTrue(f3.isValid())
self.assertEqual(f3['value'], 'newly inserted')
self.assertEqual(f3['pk'], doublepk)

0 comments on commit e8b0d82

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