pytest-bdd
pytest-bdd copied to clipboard
How to add the ``django_db`` mark to automatically generated tests?
trafficstars
I keep getting this error from pytest-django:
Failed: Database access not allowed, use the "django_db" mark, or the "db" or "transactional_db" fixtures to enable it.
However, I don't know how to add the django_db mark to tests automatically created with the scenarios() function. Some sort of documentation on how to do this would be great.
I also suspect this is the underlying reason for #187.