Skip to content
Permalink
Browse files

Correct test

  • Loading branch information
nyalldawson committed Feb 17, 2018
1 parent 141cadd commit 877efca82e0131fa25efa42f48ebea7a33bdd0a8
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/src/python/providertestbase.py
@@ -515,8 +515,8 @@ def testAddFeatureWrongGeomType(self):
self.assertFalse(result, 'Provider returned True to addFeatures with incorrect geometry type. Providers should reject these features.')

# make sure feature was not added
added = [f for f in l.dataProvider().getFeatures() if f['pk'] == 8]
self.assertTrue(added)
added = [f for f in l.dataProvider().getFeatures() if f['pk'] == 7]
self.assertFalse(added)

# yet providers MUST always accept null geometries
f3 = QgsFeature()

0 comments on commit 877efca

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