示例#1
0
 def test_parse_options(self):
     cmd = WorkerCommand()
     cmd.app = current_app
     opts, args = cmd.parse_options('celeryd', ['--concurrency=512'])
     self.assertEqual(opts.concurrency, 512)
示例#2
0
 def test_parse_options(self):
     cmd = WorkerCommand()
     cmd.app = current_app
     opts, args = cmd.parse_options("celeryd", ["--concurrency=512"])
     self.assertEqual(opts.concurrency, 512)
示例#3
0
 def test_parse_options(self):
     cmd = WorkerCommand()
     opts, args = cmd.parse_options("celeryd", ["--concurrency=512"])
     self.assertEqual(opts.concurrency, 512)