Skip to content

Commit 9e50001

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 07b81eb commit 9e50001

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/test_csp_rendering.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
from __future__ import annotations
22

3-
from typing import cast
4-
from xml.etree.ElementTree import Element
5-
63
from django.conf import settings
7-
from django.http.response import HttpResponse
8-
from django.test.utils import ContextList, override_settings
4+
from django.test.utils import override_settings
95
from html5lib.constants import E
106
from html5lib.html5parser import HTMLParser
117

@@ -40,7 +36,6 @@ def setUp(self):
4036
self.parser = HTMLParser()
4137

4238
def _fail_if_missing(self, root, path, namespaces, nonce):
43-
4439
"""
4540
Search elements, fail if a `nonce` attribute is missing on them.
4641
"""

0 commit comments

Comments
 (0)