Skip to content

Commit

Permalink
We cannot test to insert NULL with NOT NULL constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 28, 2017
1 parent 76746e7 commit e6e6189
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/src/python/test_provider_postgres.py
Expand Up @@ -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)
Expand Down

0 comments on commit e6e6189

Please sign in to comment.