mirror of
https://github.com/django/django.git
synced 2025-10-09 18:12:39 +00:00
[1.7.x] Revert "Fixed #15179 -- middlewares not applied for test client login()"
This reverts commit4fdd51b732
. See the ticket for concerns with this implementation; it will be revisited. Backport ofaabceadd7d
from master
This commit is contained in:
parent
edca57817f
commit
1d20693fa6
4 changed files with 4 additions and 67 deletions
|
@ -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
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue