Skip to content

Commit 6d3199f

Browse files
rldhontnyalldawson
authored andcommitted
[Test][Server] Enhance WMS GetPrint Selection
1 parent 336b660 commit 6d3199f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/src/python/test_qgsserver.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,7 @@ def test_wms_getprint_selection(self):
707707
"REQUEST": "GetPrint",
708708
"TEMPLATE": "layoutA4",
709709
"FORMAT": "png",
710+
"LAYERS": "Country,Hello",
710711
"map0:EXTENT": "-33626185.498,-13032965.185,33978427.737,16020257.031",
711712
"map0:LAYERS": "Country,Hello",
712713
"HEIGHT": "500",
@@ -909,8 +910,8 @@ def test_wms_GetLegendGraphic_EmptyLegend(self):
909910
"SCALE": "15466642"
910911
}.items())])
911912

912-
r, h = self._result(self.server.handleRequest(qs) )
913-
self.assertTrue( h['Content-Type'] == 'image/png' )
913+
r, h = self._result(self.server.handleRequest(qs))
914+
self.assertTrue(h['Content-Type'] == 'image/png')
914915

915916
def _result(self, data):
916917
headers = {}
25.3 KB
Loading

0 commit comments

Comments
 (0)