mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #26176 -- Fixed E123 flake8 warnings.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user