mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06: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
@@ -36,9 +36,6 @@ class TestInline(TestCase):
|
||||
self.assertEqual(result, True)
|
||||
self.factory = RequestFactory()
|
||||
|
||||
def tearDown(self):
|
||||
self.client.logout()
|
||||
|
||||
def test_can_delete(self):
|
||||
"""
|
||||
can_delete should be passed to inlineformset factory.
|
||||
@@ -359,9 +356,6 @@ class TestInlineMedia(TestCase):
|
||||
result = self.client.login(username='super', password='secret')
|
||||
self.assertEqual(result, True)
|
||||
|
||||
def tearDown(self):
|
||||
self.client.logout()
|
||||
|
||||
def test_inline_media_only_base(self):
|
||||
holder = Holder(dummy=13)
|
||||
holder.save()
|
||||
@@ -438,9 +432,6 @@ class TestInlineProtectedOnDelete(TestCase):
|
||||
result = self.client.login(username='super', password='secret')
|
||||
self.assertEqual(result, True)
|
||||
|
||||
def tearDown(self):
|
||||
self.client.logout()
|
||||
|
||||
def test_deleting_inline_with_protected_delete_does_not_validate(self):
|
||||
lotr = Novel.objects.create(name='Lord of the rings')
|
||||
chapter = Chapter.objects.create(novel=lotr, name='Many Meetings')
|
||||
@@ -514,9 +505,6 @@ class TestInlinePermissions(TestCase):
|
||||
self.client.login(username='admin', password='secret'),
|
||||
True)
|
||||
|
||||
def tearDown(self):
|
||||
self.client.logout()
|
||||
|
||||
def test_inline_add_m2m_noperm(self):
|
||||
response = self.client.get('/admin/admin_inlines/author/add/')
|
||||
# No change permission on books, so no inline
|
||||
|
||||
Reference in New Issue
Block a user