Skip to content
Permalink
Browse files

DELETEME debug commit

  • Loading branch information
m-kuhn committed Sep 25, 2017
1 parent c12b5a1 commit dc57d51da84e9b4079a598a69fbfc7a23a979541
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 dc57d51

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