def _patch_cmdutils(monkeypatch, stubs, symbol):
 cmd_utils = stubs.FakeCmdUtils({'stop': stubs.FakeCommand(name='stop', desc='stop qutebrowser'), 'drop': stubs.FakeCommand(name='drop', desc='drop all user data'), 'roll': stubs.FakeCommand(name='roll', desc='never gonna give you up'), 'hide': stubs.FakeCommand(name='hide', hide=True), 'depr': stubs.FakeCommand(name='depr', deprecated=True)})
 monkeypatch.setattr(symbol, cmd_utils)

def _patch_cmdutils ( monkeypatch , stubs , symbol ) : cmd_utils = stubs . FakeCmdUtils ( { 'stop' : stubs . FakeCommand ( name = 'stop' , desc = 'stop qutebrowser' ) , 'drop' : stubs . FakeCommand ( name = 'drop' , desc = 'drop all user data' ) , 'roll' : stubs . FakeCommand ( name = 'roll' , desc = 'never gonna give you up' ) , 'hide' : stubs . FakeCommand ( name = 'hide' , hide = True ) , 'depr' : stubs . FakeCommand ( name = 'depr' , deprecated = True ) } ) monkeypatch . setattr ( symbol , cmd_utils )
patch the cmdutils module to provide fake commands .