#5608: Allow loading test data fixtures before running tests
----------------------------+-----------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: new | Component: Unit test system
Version: SVN | Keywords: test fixtures
Stage: Unreviewed | Has_patch: 1
----------------------------+-----------------------------------------------
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.
Eg:
{{{ TEST_FIXTURES = ('test_data', ) }}}
--
Ticket URL: <http://code.djangoproject.com/ticket/5608>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---