diff options
| author | Michael Merickel <michael@merickel.org> | 2022-03-13 18:23:15 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2022-03-13 18:24:26 -0500 |
| commit | 1f8e290a7b287c5d8aaafd0ff91692d1343ce1a9 (patch) | |
| tree | f490995d5bf34627b9753b35eb2b7767ae68c3dc /tests/test_csrf.py | |
| parent | 1e439035e41da3767acbcae79689fb05dfdeb317 (diff) | |
| download | pyramid-1f8e290a7b287c5d8aaafd0ff91692d1343ce1a9.tar.gz pyramid-1f8e290a7b287c5d8aaafd0ff91692d1343ce1a9.tar.bz2 pyramid-1f8e290a7b287c5d8aaafd0ff91692d1343ce1a9.zip | |
pyupgrade --py37-plus
Diffstat (limited to 'tests/test_csrf.py')
| -rw-r--r-- | tests/test_csrf.py | 6 |
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', ) ], ) |
