Skip to content
Permalink
Browse files

[Server] WMS GetPrint group layers: use const list

  • Loading branch information
github-actions committed May 1, 2020
1 parent 3e21da8 commit 7bc1152d0187d824cc8354cb80c4f3479e8ad3c9
Showing with 9 additions and 4 deletions.
  1. +9 −4 tests/src/python/test_qgsserver_wms_getprint.py
@@ -368,7 +368,10 @@ def test_wms_getprint_group(self):
"CRS": "EPSG:3857"
}.items())])

r_individual, _ = self._result(self._execute_request(qs))
r_individual, h = self._result(self._execute_request(qs))

# test reference image
self._img_diff_error(r_individual, h, "WMS_GetPrint_Group")

qs = "?" + "&".join(["%s=%s" % i for i in list({
"MAP": urllib.parse.quote(self.projectGroupsPath),
@@ -384,6 +387,9 @@ def test_wms_getprint_group(self):

r_group, h = self._result(self._execute_request(qs))

# Test group image
self._img_diff_error(r_group, h, "WMS_GetPrint_Group")

""" Debug check:
f = open('grouped.png', 'wb+')
f.write(r_group)
@@ -393,9 +399,8 @@ def test_wms_getprint_group(self):
f.close()
#"""

self.assertEqual(r_individual, r_group, 'Individual layers query and group layers query results should be identical')

self._img_diff_error(r_group, h, "WMS_GetPrint_Group")
# This test is too strict, it can fail
#self.assertEqual(r_individual, r_group, 'Individual layers query and group layers query results should be identical')

def test_wms_getprint_legend(self):
qs = "?" + "&".join(["%s=%s" % i for i in list({

0 comments on commit 7bc1152

Please sign in to comment.
You can’t perform that action at this time.