#28823: Nested @override_settings on class and method do not work correctly
-------------------------------+--------------------------------------
     Reporter:  Paolo D'Apice  |                    Owner:  (none)
         Type:  Bug            |                   Status:  closed
    Component:  Uncategorized  |                  Version:  1.10
     Severity:  Normal         |               Resolution:  wontfix
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by Paolo D'Apice):

 Thanks for the explanation Simon. I believe it is reasonable to update the
 documentation as well, especially where it says:

   You can also simulate the absence of a setting by deleting it after
 settings have been overridden, like this:
   {{{#!python
   @override_settings()
   def test_something(self):
       del settings.LOGIN_URL
       ...
    }}}

 because that does not work as expected.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28823#comment:5>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.3e7d344a426e7e8d5e1599739b9c1893%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to