Revert "Revert "tests: Use getfixturevalue""
This reverts commit c8fe21c85f
.
This commit is contained in:
parent
1bb8ab08fc
commit
80a3920aad
@ -277,7 +277,7 @@ class QuteProc(testprocess.Process):
|
||||
if path.startswith('about:') or path.startswith('qute:'):
|
||||
return path
|
||||
else:
|
||||
httpbin = self.request.getfuncargvalue('httpbin')
|
||||
httpbin = self.request.getfixturevalue('httpbin')
|
||||
return '{}://localhost:{}/{}'.format(
|
||||
'https' if https else 'http',
|
||||
httpbin.port if port is None else port,
|
||||
|
@ -70,7 +70,7 @@ class FakeRequest:
|
||||
self.config = config
|
||||
self._httpbin = httpbin
|
||||
|
||||
def getfuncargvalue(self, name):
|
||||
def getfixturevalue(self, name):
|
||||
assert name == 'httpbin'
|
||||
return self._httpbin
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user