Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #36118 from qgis-bot/backport-35984-to-release-3_12
[Backport release-3_12] [Server] WMS GetPrint group layers: use const list
  • Loading branch information
rldhont committed May 7, 2020
2 parents cd53939 + 7bc1152 commit 702700e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/src/python/test_qgsserver_wms_getprint.py
Expand Up @@ -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),
Expand All @@ -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)
Expand All @@ -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({
Expand Down

0 comments on commit 702700e

Please sign in to comment.