diff options
| author | Tim Graham <timograham@gmail.com> | 2014-04-28 18:41:16 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-04-28 18:41:36 -0400 |
| commit | aabceadd7d7a61468b0dc7dc9d560a770abae0cf (patch) | |
| tree | bf8997b7ecdb1e2c72b8a8db1d90eb20be53fc56 /docs | |
| parent | 26b03f25265227498a2559af807918fe2a1d246f (diff) | |
Revert "Fixed #15179 -- middlewares not applied for test client login()"
This reverts commit 4fdd51b73240bf9c8d9472fcc45df699f0714755.
See the ticket for concerns with this implementation; it will be revisited.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/1.7.txt | 5 | ||||
| -rw-r--r-- | docs/topics/testing/tools.txt | 14 |
2 files changed, 0 insertions, 19 deletions
diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt index 7357fe0bfb..3cd832e750 100644 --- a/docs/releases/1.7.txt +++ b/docs/releases/1.7.txt @@ -802,11 +802,6 @@ Tests :class:`~django.test.Client`. If ``True``, the request will be made through HTTPS. -* Requests made with :meth:`Client.login() <django.test.Client.login>` and - :meth:`Client.logout() <django.test.Client.logout>` respect defaults defined - in :class:`~django.test.Client` instantiation and are processed through - middleware. - * :meth:`~django.test.TransactionTestCase.assertNumQueries` now prints out the list of executed queries if the assertion fails. diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index 883bfaf9cd..c41e35d647 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -360,13 +360,6 @@ Use the ``django.test.Client`` class to make requests. :meth:`~django.contrib.auth.models.UserManager.create_user` helper method to create a new user with a correctly hashed password. - .. versionadded:: 1.7 - - Requests made with :meth:`~django.test.Client.login` go through the - request middleware. If you need to control the environment, you can - do so at :class:`~django.test.Client` instantiation or with the - `Client.defaults` attribute. - .. method:: Client.logout() If your site uses Django's :doc:`authentication system</topics/auth/index>`, @@ -377,13 +370,6 @@ Use the ``django.test.Client`` class to make requests. and session data cleared to defaults. Subsequent requests will appear to come from an :class:`~django.contrib.auth.models.AnonymousUser`. - .. versionadded:: 1.7 - - Requests made with :meth:`~django.test.Client.logout` go through the - request middleware. If you need to control the environment, you can - do so at :class:`~django.test.Client` instantiation or with the - `Client.defaults` attribute. - Testing responses ~~~~~~~~~~~~~~~~~ |
