Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.4.X] Fixed #18057 - Documented that caches are not cleared after e…

…ach test; thanks guettli for the suggestion.

Backport of 2aaa467 from master
  • Loading branch information...
commit bd514f28e49887e8555c289546286dc27a17ddcc 1 parent 1189dca
@timgraham timgraham authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 docs/topics/testing.txt
View
7 docs/topics/testing.txt
@@ -494,6 +494,13 @@ file, all Django tests run with :setting:`DEBUG`\=False. This is to ensure that
the observed output of your code matches what will be seen in a production
setting.
+Caches are not cleared after each test, and running "manage.py test fooapp" can
+insert data from the tests into the cache of a live system if you run your
+tests in production because, unlike databases, a separate "test cache" is not
+used. This behavior `may change`_ in the future.
+
+.. _may change: https://code.djangoproject.com/ticket/11505
+
Understanding the test output
-----------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.