mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Update tests
This commit is contained in:
parent
1c37099ba4
commit
dabd3dc935
@ -43,7 +43,7 @@ class TestQgsServerWMSGetMapSizeProject(QgsServerTestBase):
|
||||
os.environ['QGIS_SERVER_WMS_MAX_HEIGHT'] = '6000'
|
||||
super(TestQgsServerWMSGetMapSizeProject, self).setUp()
|
||||
self.project = os.path.join(self.testdata_path, "test_project_with_size.qgs")
|
||||
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')
|
||||
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')
|
||||
|
||||
def test_wms_getmap_invalid_size_project(self):
|
||||
# test the 6000 limit from server is overridden by the more conservative 5000 in the project
|
||||
|
@ -41,7 +41,7 @@ class TestQgsServerWMSGetMapSizeServer(QgsServerTestBase):
|
||||
os.environ['QGIS_SERVER_WMS_MAX_HEIGHT'] = '3000'
|
||||
super(TestQgsServerWMSGetMapSizeServer, self).setUp()
|
||||
self.project = os.path.join(self.testdata_path, "test_project_with_size.qgs")
|
||||
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')
|
||||
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')
|
||||
|
||||
def test_wms_getmap_invalid_size_server(self):
|
||||
# test the 3000 limit from server is overriding the less conservative 5000 in the project
|
||||
|
Loading…
x
Reference in New Issue
Block a user