tests: Make it possible to load httpbin root.

This commit is contained in:
Florian Bruhin 2015-11-24 21:27:20 +01:00
parent 93ef85ff16
commit 8f2b29a1f9

View File

@ -181,7 +181,9 @@ class QuteProc(testprocess.Process):
if path.startswith('about:') or path.startswith('qute:'): if path.startswith('about:') or path.startswith('qute:'):
return path return path
else: else:
return 'http://localhost:{}/{}'.format(self._httpbin.port, path) return 'http://localhost:{}/{}'.format(
self._httpbin.port,
path if path != '/' else '')
def after_test(self): def after_test(self):
bad_msgs = [msg for msg in self._data bad_msgs = [msg for msg in self._data