Пример #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