@pytest.fixture
def web_history_stub(stubs):
 stub = stubs.WebHistoryStub()
 objreg.register('web-history', stub)
 (yield stub)
 objreg.delete('web-history')

@ pytest . fixture def web_history_stub ( stubs ) : stub = stubs . WebHistoryStub ( ) objreg . register ( 'web-history' , stub ) ( yield stub ) objreg . delete ( 'web-history' )
fixture which provides a fake web-history object .