Skip to content

Commit

Permalink
corrected comment in test
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Oct 15, 2018
1 parent a3f3187 commit 67276dc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsvectorlayerutils.py
Expand Up @@ -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])

Expand Down

0 comments on commit 67276dc

Please sign in to comment.