summaryrefslogtreecommitdiff
path: root/tests/test_config/test_views.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2024-01-28 23:23:45 -0700
committerGitHub <noreply@github.com>2024-01-28 23:23:45 -0700
commitef8b250d20a4223fb7ae2af7cbc9b320da150ecc (patch)
tree42cd01d6f9b0b8d5ea7d24ae497c203666cc1d9d /tests/test_config/test_views.py
parent3d640f43403d7ed8b796d4c825886f591afee5a1 (diff)
parent4fc143bee86125b290b4ed2a9e8860d7a428230b (diff)
downloadpyramid-ef8b250d20a4223fb7ae2af7cbc9b320da150ecc.tar.gz
pyramid-ef8b250d20a4223fb7ae2af7cbc9b320da150ecc.tar.bz2
pyramid-ef8b250d20a4223fb7ae2af7cbc9b320da150ecc.zip
Merge pull request #3745 from Pylons/phash-sha256
upgrade phash implementation from md5 to sha256
Diffstat (limited to 'tests/test_config/test_views.py')
-rw-r--r--tests/test_config/test_views.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_config/test_views.py b/tests/test_config/test_views.py
index c7d8c2721..2018e61f2 100644
--- a/tests/test_config/test_views.py
+++ b/tests/test_config/test_views.py
@@ -554,7 +554,7 @@ class TestViewsConfigurationMixin(unittest.TestCase):
self.assertEqual(wrapper, view)
def test_add_view_same_phash_overrides_existing_single_view(self):
- from hashlib import md5
+ from hashlib import sha256
from zope.interface import Interface
from pyramid.interfaces import (
@@ -565,7 +565,7 @@ class TestViewsConfigurationMixin(unittest.TestCase):
)
from pyramid.renderers import null_renderer
- phash = md5()
+ phash = sha256()
phash.update(b'xhr = True')
view = lambda *arg: 'NOT OK'
view.__phash__ = phash.hexdigest()
@@ -585,7 +585,7 @@ class TestViewsConfigurationMixin(unittest.TestCase):
self.assertEqual(wrapper(None, request), 'OK')
def test_add_view_exc_same_phash_overrides_existing_single_view(self):
- from hashlib import md5
+ from hashlib import sha256
from zope.interface import implementedBy
from pyramid.interfaces import (
@@ -596,7 +596,7 @@ class TestViewsConfigurationMixin(unittest.TestCase):
)
from pyramid.renderers import null_renderer
- phash = md5()
+ phash = sha256()
phash.update(b'xhr = True')
view = lambda *arg: 'NOT OK'
view.__phash__ = phash.hexdigest()