On Jan 24, 3:07 am, Daniel Moisset <dmois...@machinalis.com> wrote: > [1] The idea is loading fixtures once per TestCase instead of once per > test method, and use DB rollbacks after each test to return the DB to > the after-fixtures-just-loaded state.
So, the idea is to do the following for each TestCase: begin load fixtures savepoint s1 do test 1 rollback to savepoint 1 do test 2 rollback to savepoint 1 ... # all methods ran rollback I think that should work. It would be great to write this in a way that just checks if the connection supports savepoints. If not, then run the tests in the old-fashioned way, if yes, do the above trick. - Anssi -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.