Skip to content

Commit 2600943

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 98871af commit 2600943

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/test_session.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import base64
2-
3-
import django
4-
import pytest
5-
62
import unittest
73
from datetime import timedelta
84
from typing import Optional, Type
95

6+
import django
7+
import pytest
108
from django.conf import settings
119
from django.contrib.sessions.backends.base import SessionBase
1210
from django.contrib.sessions.backends.cache import SessionStore as CacheSession
@@ -304,6 +302,7 @@ def test_decode_failure_logged_to_security(self):
304302
self.assertEqual({}, self.session.decode(bad_encode))
305303
# The failed decode is logged.
306304
self.assertIn("corrupted", cm.output[0])
305+
307306
def test_actual_expiry(self):
308307
# this doesn't work with JSONSerializer (serializing timedelta)
309308
with override_settings(
@@ -370,7 +369,7 @@ class SessionTests(SessionTestsMixin, unittest.TestCase):
370369

371370
@pytest.mark.skipif(
372371
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",
374373
)
375374
def test_actual_expiry(self):
376375
if isinstance(

0 commit comments

Comments
 (0)