mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #23995 -- Removed unnecessary calls to self.client.logout() in tests.
This commit is contained in:
parent
2cb9d984cf
commit
ca013e652f
5 changed files with 0 additions and 124 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue