Skip to content

Commit ebccfb6

Browse files
committedApr 9, 2019
Update exception messages
1 parent c09e10c commit ebccfb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎tests/src/python/test_qgsserver_wms_getmap_size_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def setUp(self):
4545
os.environ['QGIS_SERVER_WMS_MAX_HEIGHT'] = '6000'
4646
super(TestQgsServerWMSGetMapSizeProject, self).setUp()
4747
self.project = os.path.join(self.testdata_path, "test_project_with_size.qgs")
48-
self.expected_too_big = self.strip_version_xmlns(b'<ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc">\n <ServiceException code="InvalidParameterValue">The requested map size is too large</ServiceException>\n</ServiceExceptionReport>\n')
48+
self.expected_too_big = self.strip_version_xmlns(b'<ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc">\n <ServiceException code="InvalidParameterValue">The requested map height is too large</ServiceException>\n</ServiceExceptionReport>\n')
4949

5050
def test_wms_getmap_invalid_size_project(self):
5151
# test the 6000 limit from server is overridden by the more conservative 5000 in the project

‎tests/src/python/test_qgsserver_wms_getmap_size_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def setUp(self):
4343
os.environ['QGIS_SERVER_WMS_MAX_HEIGHT'] = '3000'
4444
super(TestQgsServerWMSGetMapSizeServer, self).setUp()
4545
self.project = os.path.join(self.testdata_path, "test_project_with_size.qgs")
46-
self.expected_too_big = self.strip_version_xmlns(b'<ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc">\n <ServiceException code="InvalidParameterValue">The requested map size is too large</ServiceException>\n</ServiceExceptionReport>\n')
46+
self.expected_too_big = self.strip_version_xmlns(b'<ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc">\n <ServiceException code="InvalidParameterValue">The requested map height is too large</ServiceException>\n</ServiceExceptionReport>\n')
4747

4848
def test_wms_getmap_invalid_size_server(self):
4949
# test the 3000 limit from server is overriding the less conservative 5000 in the project

0 commit comments

Comments
 (0)
Please sign in to comment.