Fix tests

This commit is contained in:
Matthias Kuhn 2020-05-06 11:35:02 +02:00
parent 0aa1eb0e1e
commit dd0d71a6b7
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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()