Пример #1
0
    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))
Пример #2
0
 def test_sync_bars(self):
     cli.start("omega")
     cli.sync_bars("1d", codes="000001.XSHE")
     cli.stop("omega")
Пример #3
0
 def test_sync_calendar(self):
     cli.start("omega")
     cli.sync_calendar()
     cli.stop("omega")
Пример #4
0
 def test_omega_jobs(self):
     cli.start("jobs")
     cli.status()
     cli.stop("jobs")