Skip to content

Commit 3c23928

Browse files
committed
Update control images
1 parent d499940 commit 3c23928

File tree

25 files changed

+14
-0
lines changed

25 files changed

+14
-0
lines changed

tests/src/python/test_qgsserver.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ def _img_diff(self, image, control_image, max_diff, max_size_diff=QSize()):
185185
return control.compareImages(control_image, max_diff), control.report()
186186

187187
def _img_diff_error(self, response, headers, image, max_diff=100, max_size_diff=QSize()):
188+
189+
reference_path = unitTestDataPath('control_images') + '/qgis_server/' + image + '/' + image + '.png'
190+
self.store_reference(reference_path, response)
191+
188192
self.assertEqual(
189193
headers.get("Content-Type"), "image/png",
190194
"Content type is wrong: %s\n%s" % (headers.get("Content-Type"), response))

tests/src/python/test_qgsserver_accesscontrol.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ def _img_diff(self, image, control_image, max_diff, max_size_diff=QSize()):
217217
return control.compareImages(control_image), control.report()
218218

219219
def _img_diff_error(self, response, headers, image, max_diff=10, max_size_diff=QSize()):
220+
221+
reference_path = unitTestDataPath('control_images') + '/qgis_server_accesscontrol/' + image + '/' + image + '.png'
222+
self.store_reference(reference_path, response)
223+
220224
self.assertEqual(
221225
headers.get("Content-Type"), "image/png",
222226
"Content type is wrong: %s" % headers.get("Content-Type"))

tests/src/python/test_qgsserver_accesscontrol_wms_getlegendgraphic.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424

2525
class TestQgsServerAccessControlWMSGetlegendgraphic(TestQgsServerAccessControl):
2626

27+
# Set to True to re-generate reference files for this class
28+
#regenerate_reference = True
29+
2730
def test_wms_getlegendgraphic_hello(self):
2831
query_string = "&".join(["%s=%s" % i for i in list({
2932
"MAP": urllib.parse.quote(self.projectPath),

tests/src/python/test_qgsserver_wms_getlegendgraphic.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
class TestQgsServerWMSGetLegendGraphic(QgsServerTestBase):
4343
"""QGIS Server WMS Tests for GetLegendGraphic request"""
4444

45+
# Set to True to re-generate reference files for this class
46+
#regenerate_reference = True
47+
4548
def test_getLegendGraphics(self):
4649
"""Test that does not return an exception but an image"""
4750
parms = {
21 Bytes
Loading
21 Bytes
Loading
21 Bytes
Loading
21 Bytes
Loading
21 Bytes
Loading
21 Bytes
Loading

0 commit comments

Comments
 (0)