Skip to content
Permalink
Browse files

Some cleaning in unit tests

  • Loading branch information
pblottiere committed Oct 23, 2018
1 parent e25a452 commit e1cdd7e92d1e7bc84bf301622f1f729504200f7b
Showing with 0 additions and 14 deletions.
  1. +0 −14 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):

0 comments on commit e1cdd7e

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