def test_main(self): sys.argv = [sys.argv[0], '-s', 'foo'] try: celerybeat_bin.main() self.assertTrue(MockBeat.running) finally: MockBeat.running = False
def test_main(self): sys.argv = [sys.argv[0], "-s", "foo"] try: celerybeat_bin.main() self.assertTrue(MockBeat.running) finally: MockBeat.running = False
def test_main(self): sys.argv = [sys.argv[0], "-s", "foo"] try: celerybeat.main() self.assertTrue(MockBeat.running) finally: MockBeat.running = False