@pytest.fixture
def tabbed_browser_stubs(stubs, win_registry):
 win_registry.add_window(1)
 stubs = [stubs.TabbedBrowserStub(), stubs.TabbedBrowserStub()]
 objreg.register('tabbed-browser', stubs[0], scope='window', window=0)
 objreg.register('tabbed-browser', stubs[1], scope='window', window=1)
 (yield stubs)
 objreg.delete('tabbed-browser', scope='window', window=0)
 objreg.delete('tabbed-browser', scope='window', window=1)

@ pytest . fixture def tabbed_browser_stubs ( stubs , win_registry ) : win_registry . add_window ( 1 ) stubs = [ stubs . TabbedBrowserStub ( ) , stubs . TabbedBrowserStub ( ) ] objreg . register ( 'tabbed-browser' , stubs [ 0 ] , scope = 'window' , window = 0 ) objreg . register ( 'tabbed-browser' , stubs [ 1 ] , scope = 'window' , window = 1 ) ( yield stubs ) objreg . delete ( 'tabbed-browser' , scope = 'window' , window = 0 ) objreg . delete ( 'tabbed-browser' , scope = 'window' , window = 1 )
fixture providing a fake tabbed-browser object on win_id 0 and 1 .