#15179: django.test.client.Client.login fake HttpRequest is not run through
middlewares
-------------------------------------+-------------------------------------
Reporter: Ciantic | Owner:
Type: Bug | unaizalakain
Component: Testing framework | Status: assigned
Severity: Normal | Version: master
Keywords: | Resolution:
Has patch: 1 | Triage Stage: Accepted
Needs tests: 0 | Needs documentation: 0
Easy pickings: 0 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by loic84):
I'm not too sure about this ticket.
`login` and `logout` would be the only requests that go through
middleware. (refs. #9159)
Also going through the middleware is not necessarily sufficient to be
useful, what if it the middleware tests for the HTTP verb (hardcoded to
`GET` currently)? or for a specific IP address (hardcoded to '127.0.0.1')
or even for a specific endpoint (hardcoded to '/'). For this to work,
`login` and `logout` should accept `**extra` argument like the other
methods.
--
Ticket URL: <https://code.djangoproject.com/ticket/15179#comment:19>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.475c685b20165686c5a2c5cb0739ba1e%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.