summaryrefslogtreecommitdiff
path: root/tests/test_session.py
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2020-07-12 16:52:48 -0700
committerBert JW Regeer <bertjw@regeer.org>2020-07-12 16:52:48 -0700
commita920c2530c130688c5d01ed999a43ccf0cb012fa (patch)
tree43ab0c4b6db6c05418340e9e18f188e09a02f9ff /tests/test_session.py
parent4481cfeef8b2fd90a485f2f871e9689750b48220 (diff)
downloadpyramid-a920c2530c130688c5d01ed999a43ccf0cb012fa.tar.gz
pyramid-a920c2530c130688c5d01ed999a43ccf0cb012fa.tar.bz2
pyramid-a920c2530c130688c5d01ed999a43ccf0cb012fa.zip
Run isort 5.x across code base
Diffstat (limited to 'tests/test_session.py')
-rw-r--r--tests/test_session.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_session.py b/tests/test_session.py
index 94626a733..b86abe191 100644
--- a/tests/test_session.py
+++ b/tests/test_session.py
@@ -14,6 +14,7 @@ class SharedCookieSessionTests:
def test_instance_conforms(self):
from zope.interface.verify import verifyObject
+
from pyramid.interfaces import ISession
request = testing.DummyRequest()
@@ -477,8 +478,8 @@ class TestSignedCookieSession(SharedCookieSessionTests, unittest.TestCase):
self.assertEqual(session['state'], 1)
def test_invalid_data_size(self):
- from hashlib import sha512
import base64
+ from hashlib import sha512
request = testing.DummyRequest()
num_bytes = sha512().digest_size - 1