Exemple #1
0
 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
Exemple #2
0
 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
Exemple #3
0
 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)