diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2013-06-01 14:24:46 -0300 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2013-08-31 11:02:32 -0300 |
| commit | e909ceae9b3e72b72e0a2baaa92bba9714f18cd2 (patch) | |
| tree | b1c8cdcd1b876b4490036705b8ee0e8bab5df904 /docs/releases | |
| parent | e0643cb676d2b7f3219c9bf6ac2c2f990eee6899 (diff) | |
Made django.test.testcases not depend on staticfiles contrib app.
Do this by introducing a django.contrib.staticfiles.testing.StaticLiveServerCase
unittest TestCase subclass.
Fixes #20739.
Diffstat (limited to 'docs/releases')
| -rw-r--r-- | docs/releases/1.7.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt index 3c478c249a..10826829a8 100644 --- a/docs/releases/1.7.txt +++ b/docs/releases/1.7.txt @@ -332,6 +332,20 @@ Miscellaneous Define a ``get_absolute_url()`` method on your own custom user object or use :setting:`ABSOLUTE_URL_OVERRIDES` if you want a URL for your user. +* The static asset-serving functionality of the + :class:`django.test.LiveServerTestCase` class has been simplified: Now it's + only able to serve content already present in :setting:`STATIC_ROOT` when + tests are run. The ability to transparently serve all the static assets + (similarly to what one gets with :setting:`DEBUG = True <DEBUG>` at + development-time) has been moved to a new class that lives in the + ``staticfiles`` application (the one actually in charge of such feature): + :class:`django.contrib.staticfiles.testing.StaticLiveServerCase`. In other + words, ``LiveServerTestCase`` itself is less powerful but at the same time + has less magic. + + Rationale behind this is removal of dependency of non-contrib code on + contrib applications. + Features deprecated in 1.7 ========================== |
