Skip to content

Commit e1cdd7e

Browse files
committedOct 23, 2018
Some cleaning in unit tests
1 parent e25a452 commit e1cdd7e

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed
 

‎tests/src/python/test_qgsserver_wms.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,6 @@ def test_wms_getcapabilities_without_title(self):
153153
# Empty title in project leads to a Layer element without Name, Title
154154
# and Abstract tags. However, it should still have a CRS and a BBOX
155155
# according to OGC specifications tests.
156-
project = os.path.join(self.testdata_path, "test_project_without_title.qgs")
157-
qs = "?" + "&".join(["%s=%s" % i for i in list({
158-
"MAP": urllib.parse.quote(project),
159-
"SERVICE": "WMS",
160-
"VERSION": "1.3.0",
161-
"REQUEST": "GetCapabilities",
162-
"STYLES": ""
163-
}.items())])
164-
165-
r, h = self._result(self._execute_request(qs))
166-
167156
self.wms_request_compare('GetCapabilities', reference_file='wms_getcapabilities_without_title', project='test_project_without_title.qgs')
168157

169158
def test_wms_getcapabilitie_empty_spatial_layer(self):
@@ -182,7 +171,6 @@ def test_wms_getcapabilities_versions(self):
182171
"REQUEST": "GetCapabilities",
183172
}.items())])
184173

185-
r, h = self._result(self._execute_request(qs))
186174
self.wms_request_compare(qs, reference_file='wms_getcapabilities_1_3_0', version='')
187175

188176
# default version 1.3.0 when VERSION = 1.3.0 parameter
@@ -193,7 +181,6 @@ def test_wms_getcapabilities_versions(self):
193181
"REQUEST": "GetCapabilities",
194182
}.items())])
195183

196-
r, h = self._result(self._execute_request(qs))
197184
self.wms_request_compare(qs, reference_file='wms_getcapabilities_1_3_0', version='1.3.0')
198185

199186
# version 1.1.1
@@ -214,7 +201,6 @@ def test_wms_getcapabilities_versions(self):
214201
"REQUEST": "GetCapabilities",
215202
}.items())])
216203

217-
r, h = self._result(self._execute_request(qs))
218204
self.wms_request_compare(qs, reference_file='wms_getcapabilities_1_3_0', version='33.33.33')
219205

220206
def test_wms_getcapabilities_url(self):

0 commit comments

Comments
 (0)
Please sign in to comment.