mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
A bit more tolerance in provider test
This commit is contained in:
parent
972250d01f
commit
37a6856232
@ -876,9 +876,10 @@ class ProviderTestCase(FeatureSourceTestCase):
|
||||
|
||||
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):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user