@pytest.fixture
def bookmark_manager_stub(stubs):
 stub = stubs.BookmarkManagerStub()
 objreg.register('bookmark-manager', stub)
 (yield stub)
 objreg.delete('bookmark-manager')

@ pytest . fixture def bookmark_manager_stub ( stubs ) : stub = stubs . BookmarkManagerStub ( ) objreg . register ( 'bookmark-manager' , stub ) ( yield stub ) objreg . delete ( 'bookmark-manager' )
fixture which provides a fake bookmark manager object .