#20916: Provide a "simple_login" feature for the test client
-----------------------------------+------------------------------------
     Reporter:  mjtamlyn           |                    Owner:  alasdair
         Type:  New feature        |                   Status:  assigned
    Component:  Testing framework  |                  Version:  master
     Severity:  Normal             |               Resolution:
     Keywords:  auth               |             Triage Stage:  Accepted
    Has patch:  1                  |      Needs documentation:  1
  Needs tests:  0                  |  Patch needs improvement:  1
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------

Comment (by alasdair):

 jfilipes approach looks promising, so I have unassigned the ticket from
 myself.

 > Also, the term "simple" seems a little vague to me. Something like
 `force_login(user)`, or `login(user, force=True)` would seem more
 explicit.

 Adding `force=True` to the login method would be backwards incompatible.
 As mjtamlyn says earlier in the comments, login currently takes `**kwargs`
 which get passed to the auth backend.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20916#comment:14>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.ea1194a87f1e58679eb384c04aff56a9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to