pytest-bdd icon indicating copy to clipboard operation
pytest-bdd copied to clipboard

How to add the ``django_db`` mark to automatically generated tests?

Open brianmay opened this issue 8 years ago • 5 comments
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.

brianmay avatar May 13 '17 08:05 brianmay