Commit 76128f27 authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

Do not import test tasks in main test process

So the tasks aren't in the scope of the process actually launching tasks.
Dropping this ensure our code works even when tasks aren't registered, this
avoid to introduce code requiring the task to be registered (celery exception
parent 90ab474e75a2
......@@ -51,7 +51,6 @@ class BaseCeleryTaskTC(testlib.CubicWebTC):
# hook setting CUBICWEB_CELERYTASK_LOGDIR won't run.
cls.config.appdatahome, 'logs')
import tasks # noqa
cls.worker = multiprocessing.Process(target=cls.start_worker)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment