summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-02-01 21:06:27 -0500
committerTim Graham <timograham@gmail.com>2015-02-01 21:07:38 -0500
commite775200e05d65605240c4562208140cbd9b087df (patch)
tree977beefad5eba880fd69b315a219935e526eae7b
parent341a20ff6c4daee3048a4c4c8fb0e8becf2a540f (diff)
[1.7.x] Simplified a versionchanged note for LiveServerTestCase.
Backport of 6d0538bd8c38e83a605c987a40081149b254b802 from stable/1.7.x
-rw-r--r--docs/topics/testing/tools.txt24
1 files changed, 8 insertions, 16 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt
index 3f7d833958..fcb7775c7f 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -762,23 +762,15 @@ out the `full reference`_ for more details.
.. versionchanged:: 1.7
- Before Django 1.7 ``LiveServerTestCase`` used to rely on the
- :doc:`staticfiles contrib app </howto/static-files/index>` to get the
- static assets of the application(s) under test transparently served at their
- expected locations during the execution of these tests.
+ In older versions, ``LiveServerTestCase`` relied on the :doc:`staticfiles
+ contrib app </howto/static-files/index>` to transparently serve static
+ files during the execution of tests. This functionality has been moved to
+ the :class:`~django.contrib.staticfiles.testing.StaticLiveServerTestCase`
+ subclass, so use that subclass if you need :ref:`the original behavior
+ <staticfiles-testing-support>`.
- In Django 1.7 this dependency of core functionality on a ``contrib``
- application has been removed, because of which ``LiveServerTestCase``
- ability in this respect has been retrofitted to simply publish the contents
- of the file system under :setting:`STATIC_ROOT` at the :setting:`STATIC_URL`
- URL.
-
- If you use the ``staticfiles`` app in your project and need to perform live
- testing then you might want to consider using the
- :class:`~django.contrib.staticfiles.testing.StaticLiveServerTestCase`
- subclass shipped with it instead because it's the one that implements the
- original behavior now. See :ref:`the relevant documentation
- <staticfiles-testing-support>` for more details.
+ ``LiveServerTestCase`` now simply publishes the contents of the file system
+ under :setting:`STATIC_ROOT` at the :setting:`STATIC_URL`.
.. note::