summaryrefslogtreecommitdiff
path: root/docs/releases
diff options
context:
space:
mode:
authorKevin Christopher Henry <k@severian.com>2013-09-09 04:59:47 -0400
committerTim Graham <timograham@gmail.com>2013-09-09 16:03:13 -0400
commit9d700322b38ea670800a97f2b92dd2fc2c6ff28d (patch)
tree03972a5cf4a8b5eeb69909ddacbe33eeae1d2efd /docs/releases
parenta52cc1c0888c2cedb07b2c0619c1a92a2f6e2c40 (diff)
Fixed #19885 -- cleaned up the django.test namespace
* override_settings may now be imported from django.test * removed Approximate from django.test * updated documentation for things importable from django.test Thanks akaariai for the suggestion.
Diffstat (limited to 'docs/releases')
-rw-r--r--docs/releases/1.0-porting-guide.txt2
-rw-r--r--docs/releases/1.1-beta-1.txt2
-rw-r--r--docs/releases/1.1.txt2
-rw-r--r--docs/releases/1.2.2.txt2
-rw-r--r--docs/releases/1.3-alpha-1.txt6
-rw-r--r--docs/releases/1.3.txt6
-rw-r--r--docs/releases/1.4.6.txt2
-rw-r--r--docs/releases/1.5.2.txt2
-rw-r--r--docs/releases/1.6.txt2
9 files changed, 12 insertions, 14 deletions
diff --git a/docs/releases/1.0-porting-guide.txt b/docs/releases/1.0-porting-guide.txt
index 644350525c..5983e365fe 100644
--- a/docs/releases/1.0-porting-guide.txt
+++ b/docs/releases/1.0-porting-guide.txt
@@ -643,7 +643,7 @@ The generic relation classes -- ``GenericForeignKey`` and ``GenericRelation``
Testing
-------
-:meth:`django.test.client.Client.login` has changed
+:meth:`django.test.Client.login` has changed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Old (0.96)::
diff --git a/docs/releases/1.1-beta-1.txt b/docs/releases/1.1-beta-1.txt
index 88d8ce5f35..6d45b9dfc9 100644
--- a/docs/releases/1.1-beta-1.txt
+++ b/docs/releases/1.1-beta-1.txt
@@ -99,7 +99,7 @@ one fell swoop.
Testing improvements
--------------------
-.. currentmodule:: django.test.client
+.. currentmodule:: django.test
A couple of small but very useful improvements have been made to the
:doc:`testing framework </topics/testing/index>`:
diff --git a/docs/releases/1.1.txt b/docs/releases/1.1.txt
index 261b552aff..e3ee9428bf 100644
--- a/docs/releases/1.1.txt
+++ b/docs/releases/1.1.txt
@@ -285,8 +285,6 @@ full description, and some important notes on database support.
Test client improvements
------------------------
-.. currentmodule:: django.test.client
-
A couple of small -- but highly useful -- improvements have been made to the
test client:
diff --git a/docs/releases/1.2.2.txt b/docs/releases/1.2.2.txt
index 4ae74abbf9..9c3054dc59 100644
--- a/docs/releases/1.2.2.txt
+++ b/docs/releases/1.2.2.txt
@@ -23,7 +23,7 @@ case of Django 1.2.2, we have made an exception to this rule.
In order to test a bug fix that forms part of the 1.2.2 release, it
was necessary to add a feature -- the ``enforce_csrf_checks`` flag --
-to the :mod:`test client <django.test.client>`. This flag forces
+to the :ref:`test client <test-client>`. This flag forces
the test client to perform full CSRF checks on forms. The default
behavior of the test client hasn't changed, but if you want to do
CSRF checks with the test client, it is now possible to do so.
diff --git a/docs/releases/1.3-alpha-1.txt b/docs/releases/1.3-alpha-1.txt
index 634e6afaf2..cb629a2cf8 100644
--- a/docs/releases/1.3-alpha-1.txt
+++ b/docs/releases/1.3-alpha-1.txt
@@ -150,7 +150,7 @@ requests. These include:
* Improved tools for accessing and manipulating the current Site via
``django.contrib.sites.models.get_current_site()``.
-* A :class:`~django.test.client.RequestFactory` for mocking
+* A :class:`~django.test.RequestFactory` for mocking
requests in tests.
* A new test assertion --
@@ -318,7 +318,7 @@ Test client response ``template`` attribute
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Django's :ref:`test client <test-client>` returns
-:class:`~django.test.client.Response` objects annotated with extra testing
+:class:`~django.test.Response` objects annotated with extra testing
information. In Django versions prior to 1.3, this included a ``template``
attribute containing information about templates rendered in generating the
response: either None, a single :class:`~django.template.Template` object, or a
@@ -327,7 +327,7 @@ return values (sometimes a list, sometimes not) made the attribute difficult
to work with.
In Django 1.3 the ``template`` attribute is deprecated in favor of a new
-:attr:`~django.test.client.Response.templates` attribute, which is always a
+:attr:`~django.test.Response.templates` attribute, which is always a
list, even if it has only a single element or no elements.
``DjangoTestRunner``
diff --git a/docs/releases/1.3.txt b/docs/releases/1.3.txt
index ecb48803a7..b77668ac3d 100644
--- a/docs/releases/1.3.txt
+++ b/docs/releases/1.3.txt
@@ -295,7 +295,7 @@ requests. These include:
:class:`~django.contrib.sites.models.Site` object in
:doc:`the sites framework </ref/contrib/sites>`.
-* A :class:`~django.test.client.RequestFactory` for mocking requests
+* A :class:`~django.test.RequestFactory` for mocking requests
in tests.
* A new test assertion --
@@ -715,7 +715,7 @@ Test client response ``template`` attribute
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Django's :ref:`test client <test-client>` returns
-:class:`~django.test.client.Response` objects annotated with extra testing
+:class:`~django.test.Response` objects annotated with extra testing
information. In Django versions prior to 1.3, this included a ``template``
attribute containing information about templates rendered in generating the
response: either None, a single :class:`~django.template.Template` object, or a
@@ -724,7 +724,7 @@ return values (sometimes a list, sometimes not) made the attribute difficult
to work with.
In Django 1.3 the ``template`` attribute is deprecated in favor of a new
-:attr:`~django.test.client.Response.templates` attribute, which is always a
+:attr:`~django.test.Response.templates` attribute, which is always a
list, even if it has only a single element or no elements.
``DjangoTestRunner``
diff --git a/docs/releases/1.4.6.txt b/docs/releases/1.4.6.txt
index 575e9fa75a..3847ea26f9 100644
--- a/docs/releases/1.4.6.txt
+++ b/docs/releases/1.4.6.txt
@@ -26,6 +26,6 @@ header and browsers seem to ignore JavaScript there.
Bugfixes
========
-* Fixed an obscure bug with the :func:`~django.test.utils.override_settings`
+* Fixed an obscure bug with the :func:`~django.test.override_settings`
decorator. If you hit an ``AttributeError: 'Settings' object has no attribute
'_original_allowed_hosts'`` exception, it's probably fixed (#20636).
diff --git a/docs/releases/1.5.2.txt b/docs/releases/1.5.2.txt
index 710f16555c..20771365aa 100644
--- a/docs/releases/1.5.2.txt
+++ b/docs/releases/1.5.2.txt
@@ -57,6 +57,6 @@ Bugfixes
* Ensured that the WSGI request's path is correctly based on the
``SCRIPT_NAME`` environment variable or the :setting:`FORCE_SCRIPT_NAME`
setting, regardless of whether or not either has a trailing slash (#20169).
-* Fixed an obscure bug with the :func:`~django.test.utils.override_settings`
+* Fixed an obscure bug with the :func:`~django.test.override_settings`
decorator. If you hit an ``AttributeError: 'Settings' object has no attribute
'_original_allowed_hosts'`` exception, it's probably fixed (#20636).
diff --git a/docs/releases/1.6.txt b/docs/releases/1.6.txt
index 72d4df0fee..27c7482535 100644
--- a/docs/releases/1.6.txt
+++ b/docs/releases/1.6.txt
@@ -814,7 +814,7 @@ Miscellaneous
``{% url %}`` tag, it causes template rendering to fail like always when
``NoReverseMatch`` is raised.
-* :meth:`django.test.client.Client.logout` now calls
+* :meth:`django.test.Client.logout` now calls
:meth:`django.contrib.auth.logout` which will send the
:func:`~django.contrib.auth.signals.user_logged_out` signal.