Allow loading test data fixtures before running tests
|Reported by:||eikke@…||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
When using doctests as testing framework within a Django application it can be annoying no initial data is available in the database. One could use the initial_data fixture to preload some data, but this is not ideal in a production environment, as you don't want any test data in your production database, whilst you might still want to ship some initial_data which should also be loaded when initializing the application.
This results in a need to define fixtures to be loaded in the test database before the tests are started. Attached patch provides this functionality: it allows to set a TEST_FIXTURES tuple in settings.py, which will be loaded into the test database once it is created.
TEST_FIXTURES = ('test_data', )