Skip to content
Permalink
Browse files

DELETEME debug commit

  • Loading branch information
m-kuhn committed Sep 26, 2017
1 parent 3413548 commit 1fcdb095ad2fad91e6b58e5eeb2219c972d062c0
Showing with 8 additions and 0 deletions.
  1. +8 −0 tests/src/python/test_provider_wfs.py
@@ -753,8 +753,16 @@ def testWFST10(self):
f=QgsFeature()
f.setAttributes([1, 1234567890123, 'foo', QDateTime(2016, 4, 10, 12, 34, 56, 789, Qt.TimeSpec(Qt.UTC))])
f.setGeometry(QgsGeometry.fromWkt('Point (2 49)'))

def logMessage(self, msg, tag, level):
print('--------################----------------')
print(msg)
print('--------################----------------')

QgsApplication.messageLog().messageReceived.connect(logMessage)
(ret, fl)=vl.dataProvider().addFeatures([f])
self.assertTrue(ret)
QgsApplication.messageLog().messageReceived.disconnect(logMessage)
self.assertEqual(fl[0].id(), 1)

self.assertEqual(vl.featureCount(), 1)

0 comments on commit 1fcdb09

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