def test_run_celerybeat(self): try: celerybeat.run_celerybeat() self.assertTrue(MockBeat.running) finally: MockBeat.running = False
def handle(self, *args, **options): """Handle the management command.""" run_celerybeat(**options)
def test_run_celerybeat(self): try: beat.run_celerybeat() self.assertTrue(MockBeat.running) finally: MockBeat.running = False