Skip to content


Add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Apr 26, 2018
1 parent e39e3b5 commit 1afe0d1
Show file tree
Hide file tree
Showing 3 changed files with 929 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/src/python/
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 1afe0d1

Please sign in to comment.