@pytest.fixture
def status_command_stub(stubs, qtbot, win_registry):
 cmd = stubs.StatusBarCommandStub()
 objreg.register('status-command', cmd, scope='window', window=0)
 qtbot.addWidget(cmd)
 (yield cmd)
 objreg.delete('status-command', scope='window', window=0)

@ pytest . fixture def status_command_stub ( stubs , qtbot , win_registry ) : cmd = stubs . StatusBarCommandStub ( ) objreg . register ( 'status-command' , cmd , scope = 'window' , window = 0 ) qtbot . addWidget ( cmd ) ( yield cmd ) objreg . delete ( 'status-command' , scope = 'window' , window = 0 )
fixture which provides a fake status-command object .