Closed
Description
pytest-django could / should probably use the same test ordering like Django: https://docs.djangoproject.com/en/1.7/topics/testing/overview/#order-in-which-tests-are-executed
This would mean to run all tests using the db
fixture before tests using the transactional_db
fixture, and then the remaining ones.
Django's tests should be run according to the Django documentation linked above.
This could be achieved using pytest's pytest_collection_modifyitems
probably.
Some related pytest plugin: https://github.com/ftobia/pytest-ordering