Esempio n. 1
0
 def test_extra_info(self):
     celery = Celery(set_as_current=False)
     worker = celery.Worker()
     worker.loglevel = logging.WARNING
     self.assertFalse(worker.extra_info())
     worker.loglevel = logging.INFO
     self.assertTrue(worker.extra_info())
Esempio n. 2
0
 def test_extra_info(self):
     celery = Celery(set_as_current=False)
     worker = celery.Worker()
     worker.loglevel = logging.WARNING
     self.assertFalse(worker.extra_info())
     worker.loglevel = logging.INFO
     self.assertTrue(worker.extra_info())
Esempio n. 3
0
 def test_extra_info(self):
     worker = self.app.Worker()
     worker.loglevel = logging.WARNING
     self.assertFalse(worker.extra_info())
     worker.loglevel = logging.INFO
     self.assertTrue(worker.extra_info())
 def test_extra_info(self):
     worker = self.app.Worker()
     worker.loglevel = logging.WARNING
     assert not worker.extra_info()
     worker.loglevel = logging.INFO
     assert worker.extra_info()
Esempio n. 5
0
 def test_extra_info(self):
     worker = self.app.Worker()
     worker.loglevel = logging.WARNING
     self.assertFalse(worker.extra_info())
     worker.loglevel = logging.INFO
     self.assertTrue(worker.extra_info())