Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix renamed QgsVectorLayerUtils.QgsFeatureData
  • 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
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.