Skip to content

Commit fbc6e4d

Browse files
committed
add Server DPI test
1 parent f54cc37 commit fbc6e4d

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

tests/src/python/test_qgsserver_wms_getmap.py

Lines changed: 19 additions & 0 deletions
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_dpi(self):
188+
qs = "?" + "&".join(["%s=%s" % i for i in list({
189+
"MAP": urllib.parse.quote(self.projectPath),
190+
"SERVICE": "WMS",
191+
"VERSION": "1.1.1",
192+
"REQUEST": "GetMap",
193+
"LAYERS": "Country",
194+
"STYLES": "",
195+
"FORMAT": "image/png",
196+
"BBOX": "-16817707,-4710778,5696513,14587125",
197+
"HEIGHT": "500",
198+
"WIDTH": "500",
199+
"CRS": "EPSG:3857",
200+
"DPI": "112.5"
201+
}.items())])
202+
203+
r, h = self._result(self._execute_request(qs))
204+
self._img_diff_error(r, h, "WMS_GetMap_Basic5")
205+
187206
def test_wms_getmap_invalid_parameters(self):
188207
# height should be an int
189208
qs = "?" + "&".join(["%s=%s" % i for i in list({
Loading

0 commit comments

Comments
 (0)