mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[Server] SELECTION tests
Update GetMap SELECTION test Add GetPrint SELECTION test !GetPrint SELECTION has to be fixed!
This commit is contained in:
parent
534cb9e738
commit
d1f233d083
@ -588,7 +588,7 @@ class TestQgsServer(unittest.TestCase):
|
||||
"HEIGHT": "500",
|
||||
"WIDTH": "500",
|
||||
"SRS": "EPSG:3857",
|
||||
"SELECTION": "Country_Labels: 4"
|
||||
"SELECTION": "Country: 4"
|
||||
}.items())])
|
||||
|
||||
r, h = self._result(self.server.handleRequest(qs))
|
||||
@ -707,6 +707,25 @@ class TestQgsServer(unittest.TestCase):
|
||||
r, h = self._result(self.server.handleRequest(qs))
|
||||
self._img_diff_error(r, h, "WMS_GetPrint_Rotation")
|
||||
|
||||
def test_wms_getprint_selection(self):
|
||||
qs = "&".join(["%s=%s" % i for i in list({
|
||||
"MAP": urllib.parse.quote(self.projectPath),
|
||||
"SERVICE": "WMS",
|
||||
"VERSION": "1.1.1",
|
||||
"REQUEST": "GetPrint",
|
||||
"TEMPLATE": "layoutA4",
|
||||
"FORMAT": "png",
|
||||
"map0:EXTENT": "-33626185.498,-13032965.185,33978427.737,16020257.031",
|
||||
"map0:LAYERS": "Country,Hello",
|
||||
"HEIGHT": "500",
|
||||
"WIDTH": "500",
|
||||
"CRS": "EPSG:3857",
|
||||
"SELECTION": "Country: 4"
|
||||
}.items())])
|
||||
|
||||
r, h = self._result(self.server.handleRequest(qs))
|
||||
self._img_diff_error(r, h, "WMS_GetPrint_Selection")
|
||||
|
||||
def test_getLegendGraphics(self):
|
||||
"""Test that does not return an exception but an image"""
|
||||
parms = {
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 734 KiB |
BIN
tests/testdata/control_images/qgis_server/WMS_GetPrint_Selection/WMS_GetPrint_Selection.png
vendored
Normal file
BIN
tests/testdata/control_images/qgis_server/WMS_GetPrint_Selection/WMS_GetPrint_Selection.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 293 KiB |
BIN
tests/testdata/control_images/qgis_server/WMS_GetPrint_Selection/WMS_GetPrint_Selection_mask.png
vendored
Normal file
BIN
tests/testdata/control_images/qgis_server/WMS_GetPrint_Selection/WMS_GetPrint_Selection_mask.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 103 KiB |
Loading…
x
Reference in New Issue
Block a user