def test_omega_lifecycle(self): cli.start("omega") procs = cli.find_fetcher_processes() self.assertTrue(len(procs) >= 1) cli.restart("omega") cli.status() cli.stop("omega") procs = cli.find_fetcher_processes() self.assertEqual(0, len(procs))
def test_sync_bars(self): cli.start("omega") cli.sync_bars("1d", codes="000001.XSHE") cli.stop("omega")
def test_sync_calendar(self): cli.start("omega") cli.sync_calendar() cli.stop("omega")
def test_omega_jobs(self): cli.start("jobs") cli.status() cli.stop("jobs")