summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2016-08-08 03:04:27 -0700
committerTim Graham <timograham@gmail.com>2016-08-10 16:24:41 -0400
commit7f9fd42b9316e4beddb690bae61940e940281805 (patch)
treec100a4767cd3ce9503e29d57685e0fa3b8ef3298 /docs
parenta757c68129fe5b416c6a71a5401f90e3208bae99 (diff)
Fixed #27019 -- Made teardown_test_environment() restore the old DEBUG.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/testing/advanced.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/topics/testing/advanced.txt b/docs/topics/testing/advanced.txt
index 5b09bd33f3..72a8c7276c 100644
--- a/docs/topics/testing/advanced.txt
+++ b/docs/topics/testing/advanced.txt
@@ -612,11 +612,18 @@ Testing utilities
To assist in the creation of your own test runner, Django provides a number of
utility methods in the ``django.test.utils`` module.
-.. function:: setup_test_environment()
+.. function:: setup_test_environment(debug=None)
Performs global pre-test setup, such as installing instrumentation for the
template rendering system and setting up the dummy email outbox.
+ If ``debug`` isn't ``None``, the :setting:`DEBUG` setting is updated to its
+ value.
+
+ .. versionchanged:: 1.11
+
+ The ``debug`` argument was added.
+
.. function:: teardown_test_environment()
Performs global post-test teardown, such as removing instrumentation from