summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-10-31 13:34:41 -0400
committerTim Graham <timograham@gmail.com>2014-10-31 13:34:41 -0400
commit3f651b3e88ac1ba8d04acd5a074362866a0a963a (patch)
tree7ee34a823a7c3c376dc9c4a91e87180bbd4709f3 /docs
parent715ccfde24f9f2b7f6710429370a1eff3c78fc2a (diff)
Added a warning about direct settings manipulation in tests.
Thanks Thomas Chaumeny for the initial patch.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/testing/tools.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt
index 439910aa8a..f3c2a8041d 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -1061,6 +1061,12 @@ If ``multi_db=True``, fixtures are loaded into all databases.
Overriding settings
~~~~~~~~~~~~~~~~~~~
+.. warning::
+
+ Use the functions below to temporarily alter the value of settings in tests.
+ Don't manipulate ``django.conf.settings`` directly as Django won't restore
+ the original values after such manipulations.
+
.. method:: SimpleTestCase.settings()
For testing purposes it's often useful to change a setting temporarily and