Skip to content
Permalink
Browse files

Fix renamed QgsVectorLayerUtils.QgsFeatureData

  • Loading branch information
elpaso committed Feb 19, 2019
1 parent 1689c93 commit 818611cc7950ad401a7edc0ea0e255c833942525
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/python/test_provider_postgres.py
@@ -1210,7 +1210,7 @@ def testMassivePaste(self):
features_data = []
context = vl.createExpressionContext()
for i in range(4000):
features_data.append(QgsVectorLayerUtils.QgsFeaturesData(QgsGeometry.fromWkt('Polygon ((7 44, 8 45, 8 46, 7 46, 7 44))'), {0: i}))
features_data.append(QgsVectorLayerUtils.QgsFeatureData(QgsGeometry.fromWkt('Polygon ((7 44, 8 45, 8 46, 7 46, 7 44))'), {0: i}))
features = QgsVectorLayerUtils.createFeatures(vl, features_data, context)
self.assertTrue(vl.addFeatures(features))
self.assertTrue(vl.commitChanges())

0 comments on commit 818611c

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