test_solo.py 433 B

1234567891011121314151617181920
  1. import operator
  2. from celery.concurrency import solo
  3. from celery.utils.functional import noop
  4. class test_solo_TaskPool:
  5. def test_on_start(self):
  6. x = solo.TaskPool()
  7. x.on_start()
  8. def test_on_apply(self):
  9. x = solo.TaskPool()
  10. x.on_start()
  11. x.on_apply(operator.add, (2, 2), {}, noop, noop)
  12. def test_info(self):
  13. x = solo.TaskPool()
  14. x.on_start()
  15. assert x.info