pytest-django icon indicating copy to clipboard operation
pytest-django copied to clipboard

Testing with concurrency don't clone database

Open iurisilvio opened this issue 4 years ago • 1 comments
trafficstars

Django setup_databases has a parallel arg to avoid running migrations for each parallel runner.

Migrations are really slow and it was critical to our migration to pytest-django. I had to run it with --nomigrations, which is not what I wanted.

iurisilvio avatar Mar 02 '21 10:03 iurisilvio

After all, I created a project to handle this issue and more. https://github.com/businho/django-migrations-ci

I think it is possible to do the parallel part on pytest-django, but I didn't try to do it.

iurisilvio avatar Dec 30 '23 10:12 iurisilvio