mirror of
https://github.com/django/django.git
synced 2025-10-09 10:10:28 +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
|
@ -41,9 +41,6 @@ class GenericAdminViewTest(TestCase):
|
|||
m.save()
|
||||
self.png_media_pk = m.pk
|
||||
|
||||
def tearDown(self):
|
||||
self.client.logout()
|
||||
|
||||
def test_basic_add_GET(self):
|
||||
"""
|
||||
A smoke test to ensure GET on the add_view works.
|
||||
|
@ -137,9 +134,6 @@ class GenericInlineAdminParametersTest(TestCase):
|
|||
self.client.login(username='super', password='secret')
|
||||
self.factory = RequestFactory()
|
||||
|
||||
def tearDown(self):
|
||||
self.client.logout()
|
||||
|
||||
def _create_object(self, model):
|
||||
"""
|
||||
Create a model with an attached Media object via GFK. We can't
|
||||
|
@ -286,9 +280,6 @@ class GenericInlineAdminWithUniqueTogetherTest(TestCase):
|
|||
def setUp(self):
|
||||
self.client.login(username='super', password='secret')
|
||||
|
||||
def tearDown(self):
|
||||
self.client.logout()
|
||||
|
||||
def test_add(self):
|
||||
category_id = Category.objects.create(name='male').pk
|
||||
post_data = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue