Skip to content

Commit e8ce121

Browse files
committed
Add unit test to check symbol's rotation coming from a project variable
1 parent d9fbca5 commit e8ce121

File tree

3 files changed

+590
-1
lines changed

3 files changed

+590
-1
lines changed

tests/src/python/test_qgsserver_wms_getmap.py

+20-1
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,25 @@ def test_wms_getmap_basic(self):
184184
r, h = self._result(self._execute_request(qs))
185185
self._img_diff_error(r, h, "WMS_GetMap_Basic4")
186186

187+
def test_wms_getmap_context_rendering(self):
188+
project = os.path.join(self.testdata_path, "test_project_render_context.qgs")
189+
qs = "?" + "&".join(["%s=%s" % i for i in list({
190+
"MAP": urllib.parse.quote(project),
191+
"SERVICE": "WMS",
192+
"VERSION": "1.1.1",
193+
"REQUEST": "GetMap",
194+
"LAYERS": "points",
195+
"STYLES": "",
196+
"FORMAT": "image/png",
197+
"BBOX": "-119.8,20.4,-82.4,49.2",
198+
"HEIGHT": "500",
199+
"WIDTH": "500",
200+
"CRS": "EPSG:4326"
201+
}.items())])
202+
203+
r, h = self._result(self._execute_request(qs))
204+
self._img_diff_error(r, h, "WMS_GetMap_ContextRendering")
205+
187206
def test_wms_getmap_dpi(self):
188207
qs = "?" + "&".join(["%s=%s" % i for i in list({
189208
"MAP": urllib.parse.quote(self.projectPath),
@@ -947,7 +966,7 @@ def test_wms_getmap_sld(self):
947966
self._img_diff_error(r, h, "WMS_GetMap_SLDRestored")
948967

949968
def test_wms_getmap_group(self):
950-
"""A WMS shall render the requested layers by drawing the leftmost in the list
969+
"""A WMS shall render the requested layers by drawing the leftmost in the list
951970
bottommost, the next one over that, and so on."""
952971

953972
qs = "?" + "&".join(["%s=%s" % i for i in list({

0 commit comments

Comments
 (0)