def control(self, patch_call, *args, **kwargs): kwargs.setdefault("app", Mock(name="app")) c = control(*args, **kwargs) if patch_call: c.call = Mock(name="control.call") return c
def control(self, patch_call, *args, **kwargs): kwargs.setdefault('app', Mock(name='app')) c = control(*args, **kwargs) if patch_call: c.call = Mock(name='control.call') return c
def control(self, subcommand, no_color, quiet, *args, **arguments): control = command.control(self.celery) control.no_color = no_color control.quiet = quiet control.run(subcommand, *args, **arguments)