Skip to content

Commit

Permalink
Fix renamed QgsVectorLayerUtils.QgsFeatureData
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Feb 19, 2019
1 parent 1689c93 commit 818611c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/python/test_provider_postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 818611c

Please sign in to comment.