mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Update tests
This commit is contained in:
parent
7e39226879
commit
fd4ac20ea8
@ -629,7 +629,7 @@ class TestQgsServerWMSGetMap(QgsServerTestBase):
|
||||
"WIDTH": "5000"
|
||||
}.items())])
|
||||
|
||||
expected = self.strip_version_xmlns(b'<ServiceExceptionReport version="1.3.0" xmlns="http://www.opengis.net/ogc">\n <ServiceException code="Size error">The requested map size is too large</ServiceException>\n</ServiceExceptionReport>\n')
|
||||
expected = 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')
|
||||
r, h = self._result(self._execute_request(qs))
|
||||
|
||||
self.assertEqual(self.strip_version_xmlns(r), expected)
|
||||
|
@ -50,9 +50,9 @@ void TestQgsServerWmsExceptions::exception_code()
|
||||
QgsWms::QgsServiceException exception0( code, QString(), 400 );
|
||||
QCOMPARE( exception0.code(), QString( "InvalidFormat" ) );
|
||||
|
||||
code = QgsWms::QgsServiceException::QGIS_ERROR;
|
||||
code = QgsWms::QgsServiceException::QGIS_INVALID_PARAMETER_VALUE;
|
||||
QgsWms::QgsServiceException exception1( code, QString(), 400 );
|
||||
QCOMPARE( exception1.code(), QString( "Error" ) );
|
||||
QCOMPARE( exception1.code(), QString( "InvalidParameterValue" ) );
|
||||
}
|
||||
|
||||
void TestQgsServerWmsExceptions::exception_message()
|
||||
|
Loading…
x
Reference in New Issue
Block a user