In django application I have a view wich runs the Celery task. Inside the celery task I do some actions with database using Django ORM.
I call my test case something like this:
class MyViewTestCase(APITestCase):
def test_my_view(self):
self.client.post('url',data)
my test case does all orm manupulations inside the test DB. But inside celery task all orm actions are happening on product database.
I use celery 4.
Is there option to make celery work with test django database?