Skip to content

Commit d1f233d

Browse files
committedJan 19, 2017
[Server] SELECTION tests
Update GetMap SELECTION test Add GetPrint SELECTION test !GetPrint SELECTION has to be fixed!
1 parent 534cb9e commit d1f233d

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed
 

‎tests/src/python/test_qgsserver.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ def test_wms_getmap_selection(self):
588588
"HEIGHT": "500",
589589
"WIDTH": "500",
590590
"SRS": "EPSG:3857",
591-
"SELECTION": "Country_Labels: 4"
591+
"SELECTION": "Country: 4"
592592
}.items())])
593593

594594
r, h = self._result(self.server.handleRequest(qs))
@@ -707,6 +707,25 @@ def test_wms_getprint_rotation(self):
707707
r, h = self._result(self.server.handleRequest(qs))
708708
self._img_diff_error(r, h, "WMS_GetPrint_Rotation")
709709

710+
def test_wms_getprint_selection(self):
711+
qs = "&".join(["%s=%s" % i for i in list({
712+
"MAP": urllib.parse.quote(self.projectPath),
713+
"SERVICE": "WMS",
714+
"VERSION": "1.1.1",
715+
"REQUEST": "GetPrint",
716+
"TEMPLATE": "layoutA4",
717+
"FORMAT": "png",
718+
"map0:EXTENT": "-33626185.498,-13032965.185,33978427.737,16020257.031",
719+
"map0:LAYERS": "Country,Hello",
720+
"HEIGHT": "500",
721+
"WIDTH": "500",
722+
"CRS": "EPSG:3857",
723+
"SELECTION": "Country: 4"
724+
}.items())])
725+
726+
r, h = self._result(self.server.handleRequest(qs))
727+
self._img_diff_error(r, h, "WMS_GetPrint_Selection")
728+
710729
def test_getLegendGraphics(self):
711730
"""Test that does not return an exception but an image"""
712731
parms = {
Loading
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.