Skip to content
Browse files
Add unit tests
  • Loading branch information
pblottiere committed Apr 26, 2018
1 parent e39e3b5 commit 1afe0d1bb8c3552de8178882dda4d97708b69485
@@ -146,6 +146,23 @@ def test_project_wms_inspire(self):
for request in ('GetCapabilities',):

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),
"VERSION": "1.3.0",
"REQUEST": "GetCapabilities",
"STYLES": ""

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_getcapabilities_url(self):
# empty url in project
project = os.path.join(self.testdata_path, "test_project_without_urls.qgs")

0 comments on commit 1afe0d1

Please sign in to comment.