Skip to content

Commit

Permalink
Add test for annotation item
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jun 7, 2021
1 parent 8f6fec7 commit 30f915f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/src/python/test_qgsserver_wms_getmap.py
Expand Up @@ -1853,6 +1853,28 @@ def test_wms_getmap_plus_sign(self):
r, h = self._result(self._execute_request_project(qs, p))
self.assertTrue(b"The layer 'test plus' does not exist" in r)

def test_wms_annotation_item(self):
qs = "?" + "&".join(["%s=%s" % i for i in list({
"MAP": urllib.parse.quote(os.path.join(self.testdata_path,
'test_project_annotation_item.qgz')),
"SERVICE": "WMS",
"VERSION": "1.3.0",
"REQUEST": "GetMap",
"BBOX": "44.9014,8.20346,44.9015,8.20364",
"CRS": "EPSG:4326",
"WIDTH": "800",
"HEIGHT": "400",
"LAYERS": "points",
"STYLES": ",",
"FORMAT": "image/png",
"DPI": "96",
"MAP_RESOLUTION": "96",
"FORMAT_OPTIONS": "dpi:96"
}.items())])

r, h = self._result(self._execute_request(qs))
self._img_diff_error(r, h, "WMS_GetMap_AnnotationItem")


if __name__ == '__main__':
unittest.main()
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.

0 comments on commit 30f915f

Please sign in to comment.