diff options
| author | django-bot <ops@djangoproject.com> | 2025-07-22 20:41:41 -0700 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-07-23 20:17:55 -0300 |
| commit | 69a93a88edb56ba47f624dac7a21aacc47ea474f (patch) | |
| tree | f57507a4435d032493cae40e06ecb254790b67b2 /tests/utils_tests/test_csp.py | |
| parent | 55b0cc21310b76ce4018dd793ba50556eaf0af06 (diff) | |
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
Rewrapped long docstrings and block comments to 79 characters + newline
using script from https://github.com/medmunds/autofix-w505.
Diffstat (limited to 'tests/utils_tests/test_csp.py')
| -rw-r--r-- | tests/utils_tests/test_csp.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/utils_tests/test_csp.py b/tests/utils_tests/test_csp.py index 96c66538d0..86682544e2 100644 --- a/tests/utils_tests/test_csp.py +++ b/tests/utils_tests/test_csp.py @@ -67,8 +67,9 @@ class CSPBuildPolicyTest(SimpleTestCase): """ Test that a set can be passed as a value. - Sets are often used in Django settings to ensure uniqueness, however, sets are - unordered. The middleware ensures consistency via sorting if a set is passed. + Sets are often used in Django settings to ensure uniqueness, however, + sets are unordered. The middleware ensures consistency via sorting if a + set is passed. """ policy = {"default-src": {CSP.SELF, "foo.com", "bar.com"}} self.assertPolicyEqual( @@ -147,7 +148,8 @@ class LazyNonceTests(SimpleTestCase): return result with patch("django.utils.csp.secrets.token_urlsafe", memento_token_urlsafe): - # Force usage, similar to template rendering, to generate the nonce. + # Force usage, similar to template rendering, to generate the + # nonce. val = str(nonce) self.assertTrue(nonce) |
