Skip to content
Permalink
Browse files

Fix addWfsLayer in the WFS GUI test (blacklisted on Travis)

This test segfaults locally.
  • Loading branch information
elpaso committed Jul 19, 2017
1 parent 5b186ae commit 90d4768a06ded5477b50dabc71438e9452f15a32
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/src/python/test_provider_wfs_gui.py
@@ -217,7 +217,7 @@ def test(self):
# Add layer
self.addWfsLayer_uri = None
self.addWfsLayer_layer_name = None
main_dialog.addWfsLayer.connect(self.slotAddWfsLayer)
main_dialog.addVectorLayer.connect(self.slotAddWfsLayer)
QTest.mouseClick(buttonAdd, Qt.LeftButton)
self.assertEqual(self.addWfsLayer_uri, ' restrictToRequestBBOX=\'1\' srsname=\'EPSG:4326\' typename=\'my:typename\' url=\'' + "http://" + expected_endpoint + '\' version=\'auto\' table="" sql=')
self.assertEqual(self.addWfsLayer_layer_name, 'my:typename')
@@ -290,7 +290,7 @@ def test(self):

self.addWfsLayer_uri = None
self.addWfsLayer_layer_name = None
main_dialog.addWfsLayer.connect(self.slotAddWfsLayer)
main_dialog.addVectorLayer.connect(self.slotAddWfsLayer)
QTest.mouseClick(buttonAdd, Qt.LeftButton)
self.assertEqual(self.addWfsLayer_uri, ' restrictToRequestBBOX=\'1\' srsname=\'EPSG:4326\' typename=\'my:typename\' url=\'' + "http://" + expected_endpoint + '\' version=\'auto\' table="" sql=SELECT * FROM typename WHERE 1 = 1')
self.assertEqual(self.addWfsLayer_layer_name, 'my:typename')

0 comments on commit 90d4768

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