summaryrefslogtreecommitdiff
path: root/docs/topics/testing
diff options
context:
space:
mode:
authorHenk Vos <henk.vos@me.com>2014-02-22 18:06:39 +0100
committerTim Graham <timograham@gmail.com>2014-02-25 10:48:51 -0500
commit985d0865a3cfb5850f926dfd9742fa7a9ca88bdc (patch)
treef9e21bb3bb3b13ce8cc4f11239d52c280f059e2a /docs/topics/testing
parent3a5da7a11c009e46a50a8c4f432deb890151740a (diff)
[1.6.x] Fixed #22071 -- Added a warning regarding override_settings and aliasing.
Thanks EvilDMP for the suggestion. Backport of e65c0ccac0 from master
Diffstat (limited to 'docs/topics/testing')
-rw-r--r--docs/topics/testing/tools.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt
index ae291627d4..1f59943ade 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -1104,6 +1104,10 @@ The decorator can also be applied to test case classes::
the original ``LoginTestCase`` is still equally affected by the
decorator.
+ Finally, avoid aliasing your settings as module-level constants as
+ ``override_settings()`` won't work on such values since they are
+ only evaluated the first time the module is imported.
+
You can also simulate the absence of a setting by deleting it after settings
have been overriden, like this::