@pytest.fixture
def session_manager_stub(stubs):
 stub = stubs.SessionManagerStub()
 objreg.register('session-manager', stub)
 (yield stub)
 objreg.delete('session-manager')

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