mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[server][test] GetPrint test with two maps template
This is to test that map0 and map1 actually refer to the correct maps
This commit is contained in:
parent
e137ea8a9d
commit
d63f4c7658
@ -391,6 +391,26 @@ class TestQgsServerWMSGetPrint(QgsServerTestBase):
|
||||
r, h = self._result(self._execute_request(qs))
|
||||
self._img_diff_error(r, h, "WMS_GetPrint_LabelRemoved")
|
||||
|
||||
def test_wms_getprint_two_maps(self):
|
||||
"""Test map0 and map1 apply to the correct maps"""
|
||||
qs = "?" + "&".join(["%s=%s" % i for i in list({
|
||||
"MAP": urllib.parse.quote(self.projectPath),
|
||||
"SERVICE": "WMS",
|
||||
"VERSION": "1.1.1",
|
||||
"REQUEST": "GetPrint",
|
||||
"TEMPLATE": "layoutA4twoMaps",
|
||||
"FORMAT": "png",
|
||||
"map0:EXTENT": "11863620.20301065221428871,-5848927.97872077487409115,19375243.89574331790208817,138857.97204941",
|
||||
"map0:LAYERS": "Country",
|
||||
"map1:EXTENT": "-33626185.498,-13032965.185,33978427.737,16020257.031",
|
||||
"map1:LAYERS": "Country,Hello",
|
||||
"CRS": "EPSG:3857",
|
||||
"IDTEXTBOX": "",
|
||||
}.items())])
|
||||
|
||||
r, h = self._result(self._execute_request(qs))
|
||||
self._img_diff_error(r, h, "WMS_GetPrint_TwoMaps")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
BIN
tests/testdata/control_images/qgis_server/WMS_GetPrint_TwoMaps/WMS_GetPrint_TwoMaps.png
vendored
Normal file
BIN
tests/testdata/control_images/qgis_server/WMS_GetPrint_TwoMaps/WMS_GetPrint_TwoMaps.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 172 KiB |
4515
tests/testdata/qgis_server_accesscontrol/project.qgs
vendored
4515
tests/testdata/qgis_server_accesscontrol/project.qgs
vendored
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user