Skip to content

Commit

Permalink
A bit more tolerance in provider test
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 25, 2018
1 parent 972250d commit 37a6856
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/src/python/providertestbase.py
Expand Up @@ -876,9 +876,10 @@ def testMinMaxAfterChanges(self):


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


def testStringComparison(self): def testStringComparison(self):
""" """
Expand Down

0 comments on commit 37a6856

Please sign in to comment.