mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #26176 -- Fixed E123 flake8 warnings.
This commit is contained in:
parent
275314512d
commit
406675b1a0
16 changed files with 536 additions and 548 deletions
|
@ -86,10 +86,7 @@ class SecurityMiddlewareTest(SimpleTestCase):
|
|||
"includeSubDomains" tag to the response.
|
||||
"""
|
||||
response = self.process_response(secure=True)
|
||||
self.assertEqual(
|
||||
response["strict-transport-security"],
|
||||
"max-age=600; includeSubDomains",
|
||||
)
|
||||
self.assertEqual(response["strict-transport-security"], "max-age=600; includeSubDomains")
|
||||
|
||||
@override_settings(
|
||||
SECURE_HSTS_SECONDS=600, SECURE_HSTS_INCLUDE_SUBDOMAINS=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue