@pytest.fixture
def tab_registry(win_registry):
 registry = objreg.ObjectRegistry()
 objreg.register('tab-registry', registry, scope='window', window=0)
 (yield registry)
 objreg.delete('tab-registry', scope='window', window=0)

@ pytest . fixture def tab_registry ( win_registry ) : registry = objreg . ObjectRegistry ( ) objreg . register ( 'tab-registry' , registry , scope = 'window' , window = 0 ) ( yield registry ) objreg . delete ( 'tab-registry' , scope = 'window' , window = 0 )
fixture providing a tab registry for win_id 0 .