File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
import base64
2
-
3
- import django
4
- import pytest
5
-
6
2
import unittest
7
3
from datetime import timedelta
8
4
from typing import Optional , Type
9
5
6
+ import django
7
+ import pytest
10
8
from django .conf import settings
11
9
from django .contrib .sessions .backends .base import SessionBase
12
10
from django .contrib .sessions .backends .cache import SessionStore as CacheSession
@@ -304,6 +302,7 @@ def test_decode_failure_logged_to_security(self):
304
302
self .assertEqual ({}, self .session .decode (bad_encode ))
305
303
# The failed decode is logged.
306
304
self .assertIn ("corrupted" , cm .output [0 ])
305
+
307
306
def test_actual_expiry (self ):
308
307
# this doesn't work with JSONSerializer (serializing timedelta)
309
308
with override_settings (
@@ -370,7 +369,7 @@ class SessionTests(SessionTestsMixin, unittest.TestCase):
370
369
371
370
@pytest .mark .skipif (
372
371
django .VERSION > (4 , 2 ),
373
- reason = "PickleSerializer is removed as of https://code.djangoproject.com/ticket/29708"
372
+ reason = "PickleSerializer is removed as of https://code.djangoproject.com/ticket/29708" ,
374
373
)
375
374
def test_actual_expiry (self ):
376
375
if isinstance (
You can’t perform that action at this time.
0 commit comments