Skip to content

Commit 465b27a

Browse files
committedAug 18, 2017
Add test
1 parent 79d65ce commit 465b27a

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed
 

‎tests/src/python/test_qgsserver_wms.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ def test_wms_getmap_style(self):
702702
r, h = self._result(self._execute_request(qs))
703703
self._img_diff_error(r, h, "WMS_GetMap_StyleDefault")
704704

705-
# custom style
705+
# custom style with STYLES parameter
706706
qs = "?" + "&".join(["%s=%s" % i for i in list({
707707
"MAP": urllib.parse.quote(self.projectPath),
708708
"SERVICE": "WMS",
@@ -720,6 +720,24 @@ def test_wms_getmap_style(self):
720720
r, h = self._result(self._execute_request(qs))
721721
self._img_diff_error(r, h, "WMS_GetMap_StyleCustom")
722722

723+
# custom style with STYLE parameter
724+
qs = "?" + "&".join(["%s=%s" % i for i in list({
725+
"MAP": urllib.parse.quote(self.projectPath),
726+
"SERVICE": "WMS",
727+
"VERSION": "1.1.1",
728+
"REQUEST": "GetMap",
729+
"LAYERS": "Country_Labels",
730+
"STYLE": "custom",
731+
"FORMAT": "image/png",
732+
"BBOX": "-16817707,-4710778,5696513,14587125",
733+
"HEIGHT": "500",
734+
"WIDTH": "500",
735+
"CRS": "EPSG:3857"
736+
}.items())])
737+
738+
r, h = self._result(self._execute_request(qs))
739+
self._img_diff_error(r, h, "WMS_GetMap_StyleCustom")
740+
723741
def test_wms_getmap_filter(self):
724742
qs = "?" + "&".join(["%s=%s" % i for i in list({
725743
"MAP": urllib.parse.quote(self.projectPath),

0 commit comments

Comments
 (0)
Please sign in to comment.