Revert "Revert "tests: Use getfixturevalue""

This reverts commit c8fe21c85f.
This commit is contained in:
Florian Bruhin 2016-08-22 07:23:54 +02:00
parent 1bb8ab08fc
commit 80a3920aad
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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