Changes between Initial Version and Version 1 of Ticket #5624
- 09/27/2007 07:56:31 AM (9 years ago)
- Property Patch needs improvement set
Unit test system
Add pre_test signalto
Add mechanism for associating fixtures with doctests
initial v1 1 As #5608 was rejected but in our setup we'd still like to be able to load test data in the test database, without polluting the actual doctests (which are mostly used for example/documentation purposes), I went another route and created a new signal, similar to post_syncdb. It's called pre_test and is sent after test database creation, before tests are run. This way it is possible to do some pre-test setup in application management modules (I eg use it to run call_command to loaddata some test_data fixture). 1 It would be useful to be able to associate fixtures with a doctest without the need to add fixture loading code to the doctest. 2 3 Ref #5608 for a previously rejected proposal.