mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
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.
This commit is contained in:
parent
55b0cc2131
commit
69a93a88ed
378 changed files with 2781 additions and 1861 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue