Once updating to Pytest 7 from 6.2.5, tests that work in pytest < 7 fail with:
RuntimeError: Database access not allowed, use the "django_db" mark, or the "db" or "transactional_db" fixtures to enable it.
and to configure the settings file, the only thing that worked was leaving a pytest.ini behind with only this setting (I've migrated the rest to pyproject.toml)
Once updating to Pytest 7 from 6.2.5, tests that work in pytest < 7 fail with:
and to configure the settings file, the only thing that worked was leaving a
pytest.ini
behind with only this setting (I've migrated the rest topyproject.toml
)Is this a supported configuration yet, with the settings module in a pyproject.toml?