mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[1.8.x] Fixed #24223 -- Prevented a session test from leaking.
Backport of 55c76f4e3bab74c8544b72d11a99e94a1c2cfbce from master
This commit is contained in:
parent
d0c343372f
commit
7b92acea70
@ -513,7 +513,7 @@ class CacheSessionTests(SessionTestsMixin, unittest.TestCase):
|
|||||||
self.assertNotEqual(caches['sessions'].get(self.session.cache_key), None)
|
self.assertNotEqual(caches['sessions'].get(self.session.cache_key), None)
|
||||||
|
|
||||||
|
|
||||||
class SessionMiddlewareTests(unittest.TestCase):
|
class SessionMiddlewareTests(TestCase):
|
||||||
|
|
||||||
@override_settings(SESSION_COOKIE_SECURE=True)
|
@override_settings(SESSION_COOKIE_SECURE=True)
|
||||||
def test_secure_session_cookie(self):
|
def test_secure_session_cookie(self):
|
||||||
@ -605,7 +605,8 @@ class SessionMiddlewareTests(unittest.TestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class CookieSessionTests(SessionTestsMixin, TestCase):
|
# Don't need DB flushing for these tests, so can use unittest.TestCase as base class
|
||||||
|
class CookieSessionTests(SessionTestsMixin, unittest.TestCase):
|
||||||
|
|
||||||
backend = CookieSession
|
backend = CookieSession
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user