force the test path to a str (sometimes is unicode)
else webtest lint will error about the PATH_INFO environment not being a str. Change-Id: I535386647fa8797ccfb13c251448a19fc077e848
This commit is contained in:
parent
596bedfe36
commit
6d11f27e9d
@ -146,7 +146,7 @@ class FunctionalTest(db_test_base.TestBase):
|
|||||||
full_path = self.PATH_PREFIX + path
|
full_path = self.PATH_PREFIX + path
|
||||||
print('%s: %s %s' % (method.upper(), full_path, params))
|
print('%s: %s %s' % (method.upper(), full_path, params))
|
||||||
response = getattr(self.app, "%s_json" % method)(
|
response = getattr(self.app, "%s_json" % method)(
|
||||||
full_path,
|
str(full_path),
|
||||||
params=params,
|
params=params,
|
||||||
headers=headers,
|
headers=headers,
|
||||||
status=status,
|
status=status,
|
||||||
@ -160,7 +160,7 @@ class FunctionalTest(db_test_base.TestBase):
|
|||||||
extra_environ=None, status=None):
|
extra_environ=None, status=None):
|
||||||
full_path = self.PATH_PREFIX + path
|
full_path = self.PATH_PREFIX + path
|
||||||
print('DELETE: %s' % (full_path))
|
print('DELETE: %s' % (full_path))
|
||||||
response = self.app.delete(full_path,
|
response = self.app.delete(str(full_path),
|
||||||
headers=headers,
|
headers=headers,
|
||||||
status=status,
|
status=status,
|
||||||
extra_environ=extra_environ,
|
extra_environ=extra_environ,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user