Skip to content
Permalink
Browse files

A bit more tolerance in provider test

  • Loading branch information
nyalldawson committed Oct 22, 2018
1 parent 972250d commit 37a6856232b4612ab9f2ea3d889b83e7e15cb8f7
Showing with 4 additions and 3 deletions.
  1. +4 −3 tests/src/python/providertestbase.py
@@ -876,9 +876,10 @@ def testMinMaxAfterChanges(self):

if vl.dataProvider().capabilities() & QgsVectorDataProvider.DeleteAttributes:
# delete attributes
self.assertTrue(vl.dataProvider().deleteAttributes([0]))
self.assertEqual(vl.dataProvider().minimumValue(0), -200)
self.assertEqual(vl.dataProvider().maximumValue(0), 400)
if vl.dataProvider().deleteAttributes([0]):
# may not be possible, e.g. if it's a primary key
self.assertEqual(vl.dataProvider().minimumValue(0), -200)
self.assertEqual(vl.dataProvider().maximumValue(0), 400)

def testStringComparison(self):
"""

0 comments on commit 37a6856

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