From: Michael Fladischer <FladischerMichael@fladi.at>
Date: Sat, 30 Jul 2022 18:56:40 +0000
Subject: Django 4 compatibility.

---
 csp/tests/test_context_processors.py | 2 +-
 csp/tests/test_contrib.py            | 2 +-
 csp/tests/test_decorators.py         | 2 +-
 csp/tests/test_middleware.py         | 2 +-
 csp/tests/utils.py                   | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/csp/tests/test_context_processors.py b/csp/tests/test_context_processors.py
index 6c4f062..74acb59 100644
--- a/csp/tests/test_context_processors.py
+++ b/csp/tests/test_context_processors.py
@@ -5,7 +5,7 @@ from csp.middleware import CSPMiddleware
 from csp.context_processors import nonce
 
 rf = RequestFactory()
-mw = CSPMiddleware()
+mw = CSPMiddleware("")
 
 
 def test_nonce_context_processor():
diff --git a/csp/tests/test_contrib.py b/csp/tests/test_contrib.py
index 33998ab..0571ba8 100644
--- a/csp/tests/test_contrib.py
+++ b/csp/tests/test_contrib.py
@@ -6,7 +6,7 @@ from csp.contrib.rate_limiting import RateLimitedCSPMiddleware
 
 
 HEADER = 'Content-Security-Policy'
-mw = RateLimitedCSPMiddleware()
+mw = RateLimitedCSPMiddleware("")
 rf = RequestFactory()
 
 
diff --git a/csp/tests/test_decorators.py b/csp/tests/test_decorators.py
index 6f2716e..feffd71 100644
--- a/csp/tests/test_decorators.py
+++ b/csp/tests/test_decorators.py
@@ -7,7 +7,7 @@ from csp.middleware import CSPMiddleware
 
 
 REQUEST = RequestFactory().get('/')
-mw = CSPMiddleware()
+mw = CSPMiddleware("")
 
 
 def test_csp_exempt():
diff --git a/csp/tests/test_middleware.py b/csp/tests/test_middleware.py
index f9413ce..2155826 100644
--- a/csp/tests/test_middleware.py
+++ b/csp/tests/test_middleware.py
@@ -10,7 +10,7 @@ from csp.middleware import CSPMiddleware
 
 
 HEADER = 'Content-Security-Policy'
-mw = CSPMiddleware()
+mw = CSPMiddleware("")
 rf = RequestFactory()
 
 
diff --git a/csp/tests/utils.py b/csp/tests/utils.py
index 7d7814f..59cbae4 100644
--- a/csp/tests/utils.py
+++ b/csp/tests/utils.py
@@ -5,7 +5,7 @@ from csp.middleware import CSPMiddleware
 
 
 JINJA_ENV = engines['jinja2']
-mw = CSPMiddleware()
+mw = CSPMiddleware("")
 rf = RequestFactory()
 
 
