#15561: Factorize settings manipulation in tests
---------------------------------------------+----------------------
               Reporter:  claudep            |        Owner:  nobody
                 Status:  new                |    Milestone:  1.4
              Component:  Testing framework  |      Version:  SVN
             Resolution:                     |     Keywords:
           Triage Stage:  Accepted           |    Has patch:  1
    Needs documentation:  0                  |  Needs tests:  0
Patch needs improvement:  1                  |
---------------------------------------------+----------------------
Changes (by russellm):

 * needs_docs:   => 0
 * needs_better_patch:   => 1
 * stage:  Unreviewed => Accepted
 * needs_tests:   => 0
 * milestone:   => 1.4


Comment:

 Agreed, this is a good idea, both for Django's own test suite, and as a
 tool that could be used by the broader community.

 One thing that might be worth considering -- there are certain settings
 that, if changed, cause values to be cached. For example, when you set
 L10N and access date/number formatting operations, the formats are cached.
 It would be good to include the cache flushing operations as an automatic
 part of this settings decorator.

 It would also be good if the decorator worked as a class decorator, as
 well as a method decorator.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15561#comment:1>
Django <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.

Reply via email to