summaryrefslogtreecommitdiff
path: root/tests/check_framework
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2024-01-26 12:45:07 +0100
committerGitHub <noreply@github.com>2024-01-26 12:45:07 +0100
commit305757aec19c9d5111e4d76095ae0acd66163e4b (patch)
tree04aa017e66c06b3b19cb466ed4e1d73cd871523d /tests/check_framework
parent3f6d939c62efd967f548c27a265748cc2cc47ca5 (diff)
Applied Black's 2024 stable style.
https://github.com/psf/black/releases/tag/24.1.0
Diffstat (limited to 'tests/check_framework')
-rw-r--r--tests/check_framework/test_security.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/check_framework/test_security.py b/tests/check_framework/test_security.py
index b1839f48c3..cb035a90a4 100644
--- a/tests/check_framework/test_security.py
+++ b/tests/check_framework/test_security.py
@@ -593,8 +593,9 @@ class CheckReferrerPolicyTest(SimpleTestCase):
("strict-origin", "origin"),
)
for value in tests:
- with self.subTest(value=value), override_settings(
- SECURE_REFERRER_POLICY=value
+ with (
+ self.subTest(value=value),
+ override_settings(SECURE_REFERRER_POLICY=value),
):
self.assertEqual(base.check_referrer_policy(None), [])
@@ -663,8 +664,11 @@ class CheckCrossOriginOpenerPolicyTest(SimpleTestCase):
def test_with_coop(self):
tests = ["same-origin", "same-origin-allow-popups", "unsafe-none"]
for value in tests:
- with self.subTest(value=value), override_settings(
- SECURE_CROSS_ORIGIN_OPENER_POLICY=value,
+ with (
+ self.subTest(value=value),
+ override_settings(
+ SECURE_CROSS_ORIGIN_OPENER_POLICY=value,
+ ),
):
self.assertEqual(base.check_cross_origin_opener_policy(None), [])