Ran tests of a Django project using tox -p – so TOX_PARALLEL_ENV is set to true.
I set the path to the SQLite database to be used as absolute path.
What I expected
Successful run in parallel for the different tox environments.
What actually happened
pytest-django changed the path to the database file while breaking the path.
Example: database name /home/user/project/my-project.sqlite in tox env py39 caused that the database name is changed to test_/home/user/project/my-project.sqlite_py39 which is not a valid path on user's hard disk.
What I did
tox -p
– soTOX_PARALLEL_ENV
is set totrue
.What I expected
tox
environments.What actually happened
pytest-django
changed the path to the database file while breaking the path./home/user/project/my-project.sqlite
intox
envpy39
caused that the database name is changed totest_/home/user/project/my-project.sqlite_py39
which is not a valid path on user's hard disk.Suggestion