Skip to content
Permalink
Browse files

Merge pull request #40072 from rouault/test_provider_wfs_gui_update

test_provider_wfs_gui.py: update
  • Loading branch information
rouault committed Nov 15, 2020
2 parents fccfac8 + 440fde8 commit cbe791286e9f7f35a4553357551b83b9bb289df5
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/src/python/test_provider_wfs_gui.py
@@ -220,7 +220,7 @@ def test(self):
self.addWfsLayer_layer_name = None
main_dialog.addVectorLayer.connect(self.slotAddWfsLayer)
QTest.mouseClick(buttonAdd, Qt.LeftButton)
self.assertEqual(self.addWfsLayer_uri, ' pagingEnabled=\'true\' restrictToRequestBBOX=\'1\' srsname=\'EPSG:4326\' typename=\'my:typename\' url=\'' + "http://" + expected_endpoint + '\' version=\'auto\'')
self.assertEqual(self.addWfsLayer_uri, ' pagingEnabled=\'true\' preferCoordinatesForWfsT11=\'false\' restrictToRequestBBOX=\'1\' srsname=\'EPSG:4326\' typename=\'my:typename\' url=\'' + "http://" + expected_endpoint + '\' version=\'auto\'')
self.assertEqual(self.addWfsLayer_layer_name, 'my:typename')

# Click on Build Query
@@ -293,7 +293,7 @@ def test(self):
self.addWfsLayer_layer_name = None
main_dialog.addVectorLayer.connect(self.slotAddWfsLayer)
QTest.mouseClick(buttonAdd, Qt.LeftButton)
self.assertEqual(self.addWfsLayer_uri, ' pagingEnabled=\'true\' restrictToRequestBBOX=\'1\' srsname=\'EPSG:4326\' typename=\'my:typename\' url=\'' + "http://" + expected_endpoint + '\' version=\'auto\' sql=SELECT * FROM typename WHERE 1 = 1')
self.assertEqual(self.addWfsLayer_uri, ' pagingEnabled=\'true\' preferCoordinatesForWfsT11=\'false\' restrictToRequestBBOX=\'1\' srsname=\'EPSG:4326\' typename=\'my:typename\' url=\'' + "http://" + expected_endpoint + '\' version=\'auto\' sql=SELECT * FROM typename WHERE 1 = 1')
self.assertEqual(self.addWfsLayer_layer_name, 'my:typename')

# main_dialog.setProperty("hideDialogs", None)

0 comments on commit cbe7912

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