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:
Angus Salkeld 2013-05-22 18:00:12 +10:00
parent 596bedfe36
commit 6d11f27e9d

View File

@ -146,7 +146,7 @@ class FunctionalTest(db_test_base.TestBase):
full_path = self.PATH_PREFIX + path
print('%s: %s %s' % (method.upper(), full_path, params))
response = getattr(self.app, "%s_json" % method)(
full_path,
str(full_path),
params=params,
headers=headers,
status=status,
@ -160,7 +160,7 @@ class FunctionalTest(db_test_base.TestBase):
extra_environ=None, status=None):
full_path = self.PATH_PREFIX + path
print('DELETE: %s' % (full_path))
response = self.app.delete(full_path,
response = self.app.delete(str(full_path),
headers=headers,
status=status,
extra_environ=extra_environ,