Opened 9 years ago
Closed 9 years ago
#26882 closed Cleanup/optimization (fixed)
Add test(s) for django.contrib.auth.views.logout_then_login
| Reported by: | Tim Graham | Owned by: | Andrew Nester |
|---|---|---|---|
| Component: | contrib.auth | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
This view is untested according to the coverage report. Tests likely go in tests/auth_tests/test_views.py.
Change History (6)
comment:1 by , 9 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 9 years ago
comment:3 by , 9 years ago
Replace return logout(request, login_url, extra_context=extra_context) with return LogoutView.as_view(login_url, extra_context=extra_context)(request).
comment:5 by , 9 years ago
| Owner: | changed from to |
|---|
Note:
See TracTickets
for help on using tickets.
The warning is breaking my test :/
How to remove the warnings at test
RemovedInDjango21Warning: The logout() view is superseded by the class-based LogoutView().