#11505: Django's TestCase should reset the cache
-------------------------------------+-------------------------------------
     Reporter:  andrewfong           |                    Owner:
         Type:  New feature          |  andrewfong
    Component:  Testing framework    |                   Status:  assigned
     Severity:  Normal               |                  Version:  SVN
     Keywords:  cache testing flush  |               Resolution:
    Has patch:  1                    |             Triage Stage:  Accepted
  Needs tests:  0                    |      Needs documentation:  1
Easy pickings:  0                    |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by aaugustin):

 In [17042]:
 {{{
 #!CommitTicketReference repository="" revision="17042"
 Fixed several problems that hid one another in the cache tests and code.

 1 - Used django.test.TestCase instead of unittest.TestCase so that the
 override_settings decorator works.
 2 - Reverted parts of r17039 that caused failures (masked until 1).
 3 - Isolated tests by clearing the cache in tear down (masked until 1).
 Refs #11505.
 4 - Fixed a bug in cache key generation (revealed by 3).
 5 - Fixed a test that relied on this bug -- hardcoding the generated cache
 keys in tests isn't a very good idea anyway.
 6 - Uniformized some parts of the cache tests.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/11505#comment:12>
Django <https://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.

Reply via email to