Skip to content

Commit fd1539f

Browse files
committed
Skip test instead of commenting
1 parent e29f605 commit fd1539f

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

tests/src/python/test_qgsserver_wms.py

+14-13
Original file line numberDiff line numberDiff line change
@@ -354,19 +354,20 @@ def test_wms_getcapabilities_url(self):
354354
item_found = True
355355
self.assertTrue(item_found)
356356

357-
#def test_wms_GetProjectSettings_wms_print_layers(self):
358-
# projectPath = self.testdata_path + "test_project_wms_printlayers.qgs"
359-
# qs = "?" + "&".join(["%s=%s" % i for i in list({
360-
# "MAP": projectPath,
361-
# "SERVICE": "WMS",
362-
# "VERSION": "1.3.0",
363-
# "REQUEST": "GetProjectSettings"
364-
# }.items())])
365-
# header, body = self._execute_request(qs)
366-
# xmlResult = body.decode('utf-8')
367-
# self.assertTrue(xmlResult.find("<WMSBackgroundLayer>1</WMSBackgroundLayer>") != -1)
368-
# self.assertTrue(xmlResult.find("<WMSDataSource>contextualWMSLegend=0&amp;crs=EPSG:21781&amp;dpiMode=7&amp;featureCount=10&amp;format=image/png&amp;layers=public_geo_gemeinden&amp;styles=&amp;url=https://qgiscloud.com/mhugent/qgis_unittest_wms/wms?</WMSDataSource>") != -1)
369-
# self.assertTrue(xmlResult.find("<WMSPrintLayer>contextualWMSLegend=0&amp;amp;crs=EPSG:21781&amp;amp;dpiMode=7&amp;amp;featureCount=10&amp;amp;format=image/png&amp;amp;layers=public_geo_gemeinden&amp;amp;styles=&amp;amp;url=https://qgiscloud.com/mhugent/qgis_unittest_wms_print/wms?</WMSPrintLayer>") != -1)
357+
@unittest.skip('Timeout issues')
358+
def test_wms_GetProjectSettings_wms_print_layers(self):
359+
projectPath = self.testdata_path + "test_project_wms_printlayers.qgs"
360+
qs = "?" + "&".join(["%s=%s" % i for i in list({
361+
"MAP": projectPath,
362+
"SERVICE": "WMS",
363+
"VERSION": "1.3.0",
364+
"REQUEST": "GetProjectSettings"
365+
}.items())])
366+
header, body = self._execute_request(qs)
367+
xmlResult = body.decode('utf-8')
368+
self.assertTrue(xmlResult.find("<WMSBackgroundLayer>1</WMSBackgroundLayer>") != -1)
369+
self.assertTrue(xmlResult.find("<WMSDataSource>contextualWMSLegend=0&amp;crs=EPSG:21781&amp;dpiMode=7&amp;featureCount=10&amp;format=image/png&amp;layers=public_geo_gemeinden&amp;styles=&amp;url=https://qgiscloud.com/mhugent/qgis_unittest_wms/wms?</WMSDataSource>") != -1)
370+
self.assertTrue(xmlResult.find("<WMSPrintLayer>contextualWMSLegend=0&amp;amp;crs=EPSG:21781&amp;amp;dpiMode=7&amp;amp;featureCount=10&amp;amp;format=image/png&amp;amp;layers=public_geo_gemeinden&amp;amp;styles=&amp;amp;url=https://qgiscloud.com/mhugent/qgis_unittest_wms_print/wms?</WMSPrintLayer>") != -1)
370371

371372

372373
if __name__ == '__main__':

0 commit comments

Comments
 (0)