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:27 -0500
commite65c0ccac0741b793ba7be96f9dcc148bf26ca7d (patch)
treef8ae129c75f58e2495b16b0adcdf333289c91019 /docs/topics/testing
parente8161980347da5a68b4224d8a9ffc466630a796d (diff)
Fixed #22071 -- Added a warning regarding override_settings and aliasing.
Thanks EvilDMP for the suggestion.
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 a93ef39835..14ba1b2cd2 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -1181,6 +1181,10 @@ The decorator can also be applied to test case classes::
the session backend in a test that uses cached sessions and overrides
:setting:`CACHES`.
+ 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 overridden, like this::