Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 18, 2025
1 parent 9e8ba59 commit 0c326b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/src/python/test_qgsvectorlayerutils_postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
QgsDefaultValue,
QgsVectorLayer,
QgsVectorLayerUtils,
QgsUnsetAttributeValue,
)
import unittest
from qgis.testing import start_app, QgisTestCase
Expand Down Expand Up @@ -53,7 +54,9 @@ def testCreateFeature(self):
f = QgsVectorLayerUtils.createFeature(pg_layer)
self.assertEqual(f.attributes(), [default_clause, NULL])
self.assertTrue(pg_layer.addFeatures([f]))
self.assertTrue(QgsVectorLayerUtils.valueExists(pg_layer, 0, default_clause))
self.assertTrue(
QgsVectorLayerUtils.valueExists(pg_layer, 0, QgsUnsetAttributeValue())
)
f = QgsVectorLayerUtils.createFeature(pg_layer)
self.assertEqual(f.attributes(), [default_clause, NULL])
self.assertTrue(pg_layer.addFeatures([f]))
Expand Down

0 comments on commit 0c326b7

Please sign in to comment.