mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +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
@@ -190,9 +190,6 @@ class AdminForeignKeyWidgetChangeList(DjangoTestCase):
|
||||
def setUp(self):
|
||||
self.client.login(username="super", password="secret")
|
||||
|
||||
def tearDown(self):
|
||||
self.client.logout()
|
||||
|
||||
def test_changelist_ForeignKey(self):
|
||||
response = self.client.get('/admin_widgets/car/')
|
||||
self.assertContains(response, '/auth/user/add/')
|
||||
@@ -206,9 +203,6 @@ class AdminForeignKeyRawIdWidget(DjangoTestCase):
|
||||
def setUp(self):
|
||||
self.client.login(username="super", password="secret")
|
||||
|
||||
def tearDown(self):
|
||||
self.client.logout()
|
||||
|
||||
def test_nonexistent_target_id(self):
|
||||
band = models.Band.objects.create(name='Bogey Blues')
|
||||
pk = band.pk
|
||||
|
||||
Reference in New Issue
Block a user