Skip to content

Commit ad4b463

Browse files
committed
Use IntegrationTestCase as it clears the store.
1 parent 073748c commit ad4b463

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_csp_rendering.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from debug_toolbar.toolbar import DebugToolbar
1010

11-
from .base import BaseTestCase
11+
from .base import IntegrationTestCase
1212

1313

1414
def get_namespaces(element: Element) -> Dict[str, str]:
@@ -22,10 +22,11 @@ def get_namespaces(element: Element) -> Dict[str, str]:
2222

2323

2424
@override_settings(DEBUG=True)
25-
class CspRenderingTestCase(BaseTestCase):
25+
class CspRenderingTestCase(IntegrationTestCase):
2626
"""Testing if `csp-nonce` renders."""
2727

2828
def setUp(self):
29+
super().setUp()
2930
self.parser = HTMLParser()
3031

3132
def _fail_if_missing(

0 commit comments

Comments
 (0)