parent
a5e4e88ac8
commit
961d33b712
@ -277,7 +277,7 @@ 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:
|
||||||
httpbin = self.request.getfuncargvalue('httpbin')
|
httpbin = self.request.getfixturevalue('httpbin')
|
||||||
return '{}://localhost:{}/{}'.format(
|
return '{}://localhost:{}/{}'.format(
|
||||||
'https' if https else 'http',
|
'https' if https else 'http',
|
||||||
httpbin.port if port is None else port,
|
httpbin.port if port is None else port,
|
||||||
|
@ -70,7 +70,7 @@ class FakeRequest:
|
|||||||
self.config = config
|
self.config = config
|
||||||
self._httpbin = httpbin
|
self._httpbin = httpbin
|
||||||
|
|
||||||
def getfuncargvalue(self, name):
|
def getfixturevalue(self, name):
|
||||||
assert name == 'httpbin'
|
assert name == 'httpbin'
|
||||||
return self._httpbin
|
return self._httpbin
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user