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 error message when triggering the database from setup_X methods should clearly point out that database access from such methods is not supported, rather than advising to put the django_db marker on the test.
May I also suggest some documentation, similar to what @pelme has written in his very helpful SO answer. At least I couldn't find that setup-methods unsupported in the pytest-django documentation anywhere.
Yes that would be very helpful. If you (or anyone else) are interested in contributing a documentation change based on my SO answer, that would be very helpful!
The error message when triggering the database from setup_X methods should clearly point out that database access from such methods is not supported, rather than advising to put the django_db marker on the test.
See http://stackoverflow.com/questions/34089425/django-pytest-setup-method-database-issue for original problem.
The text was updated successfully, but these errors were encountered: