コード例 #1
0
ファイル: test_celery.py プロジェクト: csunny/celery
 def test_with_pool_option(self):
     x = CeleryCommand(app=self.app)
     self.assertIsNone(x.with_pool_option(['celery', 'events']))
     self.assertTrue(x.with_pool_option(['celery', 'worker']))
     self.assertTrue(x.with_pool_option(['manage.py', 'celery', 'worker']))
コード例 #2
0
ファイル: test_celery.py プロジェクト: NotSqrt/celery
 def test_with_pool_option(self):
     x = CeleryCommand(app=self.app)
     self.assertIsNone(x.with_pool_option(["celery", "events"]))
     self.assertTrue(x.with_pool_option(["celery", "worker"]))
     self.assertTrue(x.with_pool_option(["manage.py", "celery", "worker"]))
コード例 #3
0
 def test_with_pool_option(self):
     x = CeleryCommand(app=self.app)
     assert x.with_pool_option(['celery', 'events']) is None
     assert x.with_pool_option(['celery', 'worker'])
     assert x.with_pool_option(['manage.py', 'celery', 'worker'])
コード例 #4
0
ファイル: test_celery.py プロジェクト: Scalr/celery
 def test_with_pool_option(self):
     x = CeleryCommand(app=self.app)
     assert x.with_pool_option(['celery', 'events']) is None
     assert x.with_pool_option(['celery', 'worker'])
     assert x.with_pool_option(['manage.py', 'celery', 'worker'])