Skip to content
Permalink
Browse files

corrected comment in test

  • Loading branch information
signedav committed Oct 15, 2018
1 parent a3f3187 commit 67276dcddf3c6da8d366efe801e5d9026512064b
File renamed without changes.
@@ -275,7 +275,7 @@ def testCreateFeature(self):
# since field 1 has Unique Constraint, it ignores value 123 that already has been set and sets to 128
self.assertEqual(f.attributes(), ['test_1', 128, NULL])
layer.setFieldConstraint(0, QgsFieldConstraints.ConstraintUnique)
# since field 0 and 1 already have values test_1 and 123, the output must be null
# since field 0 and 1 already have values test_1 and 123, the output must be a new unique value
f = QgsVectorLayerUtils.createFeature(layer, attributes={0: 'test_1', 1: 123})
self.assertEqual(f.attributes(), ['test_4', 128, NULL])

0 comments on commit 67276dc

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