Closed
Description
Hi!
Recently, I have migrated some Django projects to run their tests using Tox. Because of the number of tests and Tox environments, it was configured to run tests in parallel. This required a similar approach as what's currently handled by pytest-django
when running tests with pytest-xdist
: Database renaming to avoid collisions.
A simple fixture like django_db_modify_db_settings_xdist_suffix
, to add a suffix to database names, was enough to fix database collisions, so I wonder if pytest-django
should also handle Tox testing in these scenarios. And, now more than ever, with Tox implementing real support for parallel execution.
I have the time to work on this, and provide what I've implemented so far, if this request is accepted!