pytest-dev / pytest-django

A Django plugin for pytest.
https://pytest-django.readthedocs.io/
Other
1.39k stars 344 forks source link

More granular database fixtures #247

Open pelme opened 9 years ago

pelme commented 9 years ago

A lot of issues reported would benefit from a more general approach to hooking into/overriding how pytest-django's internal fixtures with regard to managing the database. This issue is a place to collect related issues that should be solved when re-thinking/re-organizing the fixtures.

The (now quite old) branch https://github.com/pytest-dev/pytest-django/tree/fixturefix is the place where I have been experimenting with ideas in this area.

Support hooking into database creation:

Support having database fixtures in session, module, class scope:

pelme commented 8 years ago

This is the issue which gathers some of the existing issues in one place. /cc @blueyed