示例#1
0
 def test_run_celerybeat(self):
     try:
         celerybeat.run_celerybeat()
         self.assertTrue(MockBeat.running)
     finally:
         MockBeat.running = False
示例#2
0
 def handle(self, *args, **options):
     """Handle the management command."""
     run_celerybeat(**options)
示例#3
0
 def test_run_celerybeat(self):
     try:
         beat.run_celerybeat()
         self.assertTrue(MockBeat.running)
     finally:
         MockBeat.running = False