Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
We cannot test to insert NULL with NOT NULL constraints
- Loading branch information
Showing
with
0 additions
and
9 deletions.
-
+0
−9
tests/src/python/test_provider_postgres.py
|
@@ -329,15 +329,6 @@ def onError(message): |
|
|
self.assertEqual(f['val'], feature['val']) |
|
|
self.assertEqual(f['name'], feature['name']) |
|
|
|
|
|
f = QgsFeature(vl.fields()) |
|
|
f['gid'] = 101 |
|
|
f['val'] = NULL |
|
|
f['name'] = NULL |
|
|
vl.addFeature(f) |
|
|
feature = next(vl.getFeatures('"gid" = 101')) |
|
|
self.assertEqual(f['val'], feature['val']) |
|
|
self.assertEqual(f['name'], feature['name']) |
|
|
|
|
|
def testNestedInsert(self): |
|
|
tg = QgsTransactionGroup() |
|
|
tg.addLayer(self.vl) |
|
|