summaryrefslogtreecommitdiff
path: root/tests/test_csrf.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2022-09-29 18:22:56 -0500
committerGitHub <noreply@github.com>2022-09-29 18:22:56 -0500
commit51a731c690b2644df206722767a74fee9339fb87 (patch)
treee45f75dbb1f209464e1bd1f69d22a24eb7bc36f5 /tests/test_csrf.py
parent97481ac5f713306e398ea2ffd283004a485df114 (diff)
parentd9a49e0afeb773d80ee6f6a60ad4936d433dc4f4 (diff)
downloadpyramid-51a731c690b2644df206722767a74fee9339fb87.tar.gz
pyramid-51a731c690b2644df206722767a74fee9339fb87.tar.bz2
pyramid-51a731c690b2644df206722767a74fee9339fb87.zip
Merge pull request #3701 from Pylons/pyupgrade-3.7
pyupgrade --py37-plus
Diffstat (limited to 'tests/test_csrf.py')
-rw-r--r--tests/test_csrf.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_csrf.py b/tests/test_csrf.py
index 191b0864f..dc1f97829 100644
--- a/tests/test_csrf.py
+++ b/tests/test_csrf.py
@@ -128,7 +128,7 @@ class TestCookieCSRFStoragePolicy(unittest.TestCase):
[
(
'Set-Cookie',
- 'csrf_token={}; Path=/; SameSite=Lax'.format(token),
+ f'csrf_token={token}; Path=/; SameSite=Lax',
)
],
)
@@ -142,7 +142,7 @@ class TestCookieCSRFStoragePolicy(unittest.TestCase):
request.response_callback(request, response)
self.assertEqual(
response.headerlist,
- [('Set-Cookie', 'csrf_token={}; Path=/'.format(token))],
+ [('Set-Cookie', f'csrf_token={token}; Path=/')],
)
def test_existing_cookie_csrf_does_not_set_cookie(self):
@@ -169,7 +169,7 @@ class TestCookieCSRFStoragePolicy(unittest.TestCase):
[
(
'Set-Cookie',
- 'csrf_token={}; Path=/; SameSite=Lax'.format(token),
+ f'csrf_token={token}; Path=/; SameSite=Lax',
)
],
)