-
Notifications
You must be signed in to change notification settings - Fork 348
No way to specify the database for fixtures #1192
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
Comments
Please https://pytest-django.readthedocs.io/en/latest/database.html#tests-requiring-multiple-databases. Does that work? |
|
I'm also running into this issue. I was hoping not to auto mark all tests as using a DB and instead let the fixtures pull in a database as needed. This is not something that can be easily configured per fixture, but maybe returning the default set of DBs to pull in via a fixture would allow some customization. |
Uh oh!
There was an error while loading. Please reload this page.
The only way to declare that a fixture requires a database is the
db
fixture. However, since #1186 this will only pull in the default database. As far as I can see, there is currently no way to specify a different database.Prior to #1186, the
db
fixture pulled in all databases.The text was updated successfully, but these errors were encountered: