Open michaelconan opened 1 month ago
Bad example: Medium
Creates a separate app instance rather than using the flask.current_app
function.
Use conftest.py
for shared fixtures - take example from tutorial.
Given extent of tutorial example may not need to worry about tests here... or just celery task test.
The flask documentation and repository examples provide some helpful information about using Celery with Flask, however, there are some core elements of the usage pattern that are not explicitly outlined. The documentation should clearly demonstrate:
Even as someone with reasonable experience in Python and some with Flask, I had a hard time finding the answer to this is the docs.
TODO:
examples/celery
docs/patterns/celery.rst