tests: Use getfixturevalue

See #1877
This commit is contained in:
Florian Bruhin 2016-08-21 16:18:33 +02:00
parent a5e4e88ac8
commit 961d33b712
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