mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #23995 -- Removed unnecessary calls to self.client.logout() in tests.
This commit is contained in:
committed by
Tim Graham
parent
2cb9d984cf
commit
ca013e652f
@@ -22,9 +22,6 @@ class AdminCustomUrlsTest(TestCase):
|
||||
def setUp(self):
|
||||
self.client.login(username='super', password='secret')
|
||||
|
||||
def tearDown(self):
|
||||
self.client.logout()
|
||||
|
||||
def test_basic_add_GET(self):
|
||||
"""
|
||||
Ensure GET on the add_view works.
|
||||
@@ -91,9 +88,6 @@ class CustomRedirects(TestCase):
|
||||
def setUp(self):
|
||||
self.client.login(username='super', password='secret')
|
||||
|
||||
def tearDown(self):
|
||||
self.client.logout()
|
||||
|
||||
def test_post_save_add_redirect(self):
|
||||
"""
|
||||
Ensures that ModelAdmin.response_post_save_add() controls the
|
||||
|
||||
Reference in New Issue
Block a user