django1/django
Karen Tracey 344f16e220 Fixed #8138 -- Changed django.test.TestCase to rollback tests (when the database supports it) instead of flushing and reloading the database. This can substantially reduce the time it takes to run large test suites.
This change may be slightly backwards incompatible, if existing tests need to test transactional behavior, or if they rely on invalid assumptions or a specific test case ordering.  For the first case, django.test.TransactionTestCase should be used.  TransactionTestCase is also a quick fix to get around test case errors revealed by the new rollback approach, but a better long-term fix is to correct the test case.  See the testing doc for full details.

Many thanks to:
* Marc Remolt for the initial proposal and implementation.
* Luke Plant for initial testing and improving the implementation.
* Ramiro Morales for feedback and help with tracking down a mysterious PostgreSQL issue.
* Eric Holscher for feedback regarding the effect of the change on the Ellington testsuite.
* Russell Keith-Magee for guidance and feedback from beginning to end.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@9756 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-01-16 02:30:22 +00:00
..
bin Fixed #5522 -- Moved make-messages, compile-messages and daily-cleanup into django-admin.py. 2008-07-06 06:39:44 +00:00
conf Fixed #6470: made the admin use a URL resolver. 2009-01-14 20:22:25 +00:00
contrib Fixed #6767: changed the way the Oracle backend fetches numbers to prevent decimals being returned as floats. 2009-01-15 20:39:09 +00:00
core In urlconfs, include() may now be used on an iterable of patterns instead of just a module string. Refs #6470 -- making the admin use a urlconf is much easier with this work done. Thanks, Alex Gaynor. 2009-01-10 22:54:20 +00:00
db Fixed #8138 -- Changed django.test.TestCase to rollback tests (when the database supports it) instead of flushing and reloading the database. This can substantially reduce the time it takes to run large test suites. 2009-01-16 02:30:22 +00:00
dispatch Fixed #8285: signal handlers that aren't functions work under DEBUG. This slightly loosens the sanity check, but things that are valid under production shouldn't fail under debug. 2008-08-25 18:24:05 +00:00
forms Fixed #9882 -- Added `alters_data = True` to `BaseModelForm.save` method, thanks dc. 2008-12-23 05:50:51 +00:00
http Fixed #8278: fixed `QueryDict.update(QueryDict)`. Thanks, julien. 2008-08-29 16:49:19 +00:00
middleware Fixed #9199 -- We were erroneously only prepending "www" to the domain if we 2008-10-07 08:22:50 +00:00
shortcuts Fixed #3511 -- Changed QuerySet.get() to return a MultipleObjectsReturned exception, rather than an assertion error. Thanks, Gary Wilson and cheeming. 2007-12-02 18:21:07 +00:00
template Here's the rest of [9530] where I actually rename the tag like I said I did. I swear this was git's fault, not mine. 2008-11-24 22:33:32 +00:00
templatetags Fixed #7460 -- Made the "cache" template tag always generate keys that can be 2008-08-25 04:52:55 +00:00
test Fixed #8138 -- Changed django.test.TestCase to rollback tests (when the database supports it) instead of flushing and reloading the database. This can substantially reduce the time it takes to run large test suites. 2009-01-16 02:30:22 +00:00
utils Upgraded included simplejson to 2.0.7. 2009-01-06 05:13:02 +00:00
views Revised r9566 slightly to be backwards compatible with versions 1.0 - 1.0.2. 2009-01-09 12:41:07 +00:00
__init__.py Update django.VERSION in trunk per previous discussion 2008-09-30 17:50:44 +00:00