From e1cdd7e92d1e7bc84bf301622f1f729504200f7b Mon Sep 17 00:00:00 2001 From: Blottiere Paul Date: Wed, 24 Oct 2018 00:24:48 +0200 Subject: [PATCH] Some cleaning in unit tests --- tests/src/python/test_qgsserver_wms.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/tests/src/python/test_qgsserver_wms.py b/tests/src/python/test_qgsserver_wms.py index 32e3dba28496..0c0fd9de0a01 100644 --- a/tests/src/python/test_qgsserver_wms.py +++ b/tests/src/python/test_qgsserver_wms.py @@ -153,17 +153,6 @@ def test_wms_getcapabilities_without_title(self): # Empty title in project leads to a Layer element without Name, Title # and Abstract tags. However, it should still have a CRS and a BBOX # according to OGC specifications tests. - project = os.path.join(self.testdata_path, "test_project_without_title.qgs") - qs = "?" + "&".join(["%s=%s" % i for i in list({ - "MAP": urllib.parse.quote(project), - "SERVICE": "WMS", - "VERSION": "1.3.0", - "REQUEST": "GetCapabilities", - "STYLES": "" - }.items())]) - - r, h = self._result(self._execute_request(qs)) - self.wms_request_compare('GetCapabilities', reference_file='wms_getcapabilities_without_title', project='test_project_without_title.qgs') def test_wms_getcapabilitie_empty_spatial_layer(self): @@ -182,7 +171,6 @@ def test_wms_getcapabilities_versions(self): "REQUEST": "GetCapabilities", }.items())]) - r, h = self._result(self._execute_request(qs)) self.wms_request_compare(qs, reference_file='wms_getcapabilities_1_3_0', version='') # default version 1.3.0 when VERSION = 1.3.0 parameter @@ -193,7 +181,6 @@ def test_wms_getcapabilities_versions(self): "REQUEST": "GetCapabilities", }.items())]) - r, h = self._result(self._execute_request(qs)) self.wms_request_compare(qs, reference_file='wms_getcapabilities_1_3_0', version='1.3.0') # version 1.1.1 @@ -214,7 +201,6 @@ def test_wms_getcapabilities_versions(self): "REQUEST": "GetCapabilities", }.items())]) - r, h = self._result(self._execute_request(qs)) self.wms_request_compare(qs, reference_file='wms_getcapabilities_1_3_0', version='33.33.33') def test_wms_getcapabilities_url(self):