New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixture django_db_setup stopped working when upgrading from 4.6 to 4.7 #1115
Comments
Shouldn't your
|
Thanks for the suggestion, it doesn't solve it unfortunately. |
Somehow it always worked without marking the individual tests with |
Reopening because the problem still occurs when running this in my CI pipeline. Downgrading to |
After updating pytest-django from v4.4 to v4.8, I'm experiencing the same database access error despite using @pytest.mark.django_db. |
I've been using a custom
django_db_setup
fixture which has worked for years. After upgrading from4.6
to4.7
this suddenly doesn't work anymore, resulting in the following error:RuntimeError: Database access not allowed, use the "django_db" mark, or the "db" or "transactional_db" fixtures to enable it.
This might be a bug. Anybody any idea how to fix this from
4.7
?The fixture is something like this:
The text was updated successfully, but these errors were encountered: