Opened 10 years ago
Closed 10 years ago
#23995 closed Cleanup/optimization (fixed)
Remove unnecessary calls to self.client.logout() in tests
Reported by: | Tim Graham | Owned by: | Diego Guimarães |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | diegaogs@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
Audit the Django test suite and remove self.client.logout()
in tearDown()
methods (for example, tests/admin_views/tests.py
).
A new test client instance is created for each test; there is no need to logout after every test.
Attachments (1)
Change History (4)
by , 10 years ago
Attachment: | 23995.diff added |
---|
comment:1 by , 10 years ago
Cc: | added |
---|---|
Has patch: | set |
comment:2 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
In ca013e652f912e279c128d4d2631eaa3b02e4db7: