Test with Celery task unable to see database commits #3165
Labels
type: bug
problem that needs to be addressed
type: question
general question, might be closed after 2 weeks of inactivity
Thanks for submitting an issue!
Here's a quick checklist in what to include:
I'm unable to view database actions in a Celery task from my pytest test function. I imagine it's related to transactions, but can't nail it down despite setting
transaction=True
in the pytest marker.pip list
of the virtual environment you are usingSample test
Sample Celery task
This is printing
True
despite the assertion failing.The text was updated successfully, but these errors were encountered: