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
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user