mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-05 00:04:40 -05:00
Fix tests
This commit is contained in:
parent
0aa1eb0e1e
commit
dd0d71a6b7
@ -22,14 +22,14 @@ __date__ = 'August 2012'
|
||||
__copyright__ = '(C) 2012, Victor Olaya'
|
||||
|
||||
from processing.tools.dataobjects import * # NOQA
|
||||
from processing.tools.dataobjects import createContext
|
||||
from processing.tools.general import * # NOQA
|
||||
from processing.tools.general import (
|
||||
algorithmHelp,
|
||||
run,
|
||||
runAndLoadResults,
|
||||
createAlgorithmDialog,
|
||||
execAlgorithmDialog,
|
||||
createContext
|
||||
execAlgorithmDialog
|
||||
)
|
||||
from processing.tools.vector import * # NOQA
|
||||
from processing.tools.raster import * # NOQA
|
||||
|
||||
@ -139,7 +139,7 @@ class QgsServerTestBase(unittest.TestCase):
|
||||
|
||||
def strip_version_xmlns(self, text):
|
||||
"""Order of attributes is random, strip version and xmlns"""
|
||||
return text.replace(br'version="1.3.0"', r'').replace(br'xmlns="http://www.opengis.net/ogc"', b'')
|
||||
return text.replace(b'version="1.3.0"', b'').replace(b'xmlns="http://www.opengis.net/ogc"', b'')
|
||||
|
||||
def assert_headers(self, header, body):
|
||||
stream = StringIO()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user