Skip to content
Permalink
Browse files

We cannot test to insert NULL with NOT NULL constraints

  • Loading branch information
m-kuhn committed Oct 28, 2017
1 parent 76746e7 commit e6e6189180949655e9f09962b884efc571d6875c
Showing with 0 additions and 9 deletions.
  1. +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)

0 comments on commit e6e6189

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