#25781: admin_views tests should mostly use client.force_login()
------------------------------------------------+------------------------
               Reporter:  timgraham             |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Testing framework     |        Version:  master
               Severity:  Normal                |       Keywords:
           Triage Stage:  Accepted              |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  1
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 Some `admin_views` tests that aren't testing the login view use something
 like `self.client.post(reverse('admin:login'), self.changeuser_login)`.
 Since it's not important to test the admin view in these cases, it will be
 fine to use `self.client.force_login(user)`. Some also have unnecessary
 calls `self.client.get(self.index_url)`.

--
Ticket URL: <https://code.djangoproject.com/ticket/25781>
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/052.37bc1a290dd2b0d182a1801bb55bf41c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to