#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 unaizalakain):
It's a pity that `username` and `password` kwargs cannot be assumed
because of the auth backend plugability. Though it would be better not to,
it seems to me that the only possible solution is to add a `extra` kwarg
that accepts a dict although I don't know if it's a really needed feature
(though it doesn't really hurt to have it) because of the possibility of
setting custom env vars directly at the `Client` at instantiation or
modifying `Client.defaults`.
--
Ticket URL: <https://code.djangoproject.com/ticket/15179#comment:23>
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.c60333b1a6056f4c001c09aabd0aaa36%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.