You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
xi
added a commit
to xi/pytest-django
that referenced
this issue
Apr 14, 2025
@pytest.mark.django_db cannot be used for fixtures, so it does not apply here. The only way to declare that a fixture requires a database is the db fixture, and that does not take any parameters.
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: