Beispiel #1
0
 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']))
Beispiel #2
0
 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"]))
Beispiel #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'])
Beispiel #4
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'])