You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @hq9000 👋,
Thank you for opening an issue. We will get back to you as soon as we can.
Also, check out our Open Collective and consider backing us - every little helps!
We also offer priority support for our sponsors.
If you require immediate assistance please consider sponsoring us.
hq9000
changed the title
non working example of using celery_worker pytest fixture
non working example of using celery_worker pytest fixture (celery.exception.NotRegistered)
Sep 9, 2022
Checklist
for similar or identical bug reports.
for existing proposed fixes.
to find out if the bug was already fixed in the master branch.
(If there are none, check this box anyway).
Related Issues and Possible Duplicates
Related Issues
Possible Duplicates
Description
the part of the documentation describing
celery_app
andcelery_worker
fixtures has a test example that doesn't pass:https://github.com/celery/celery/blame/master/docs/userguide/testing.rst#L152
if we use this test as it is, it will fail because the task does not get registered in the worker:
celery.exceptions.NotRegistered: 'test_create_task.mul'
Suggestions
the problem is that executed this way, the tasks are not registered in the worker. The way I found working is to override the
celery_app
fixture:The text was updated successfully, but these errors were encountered: