Skip to content
Snippets Groups Projects
Commit 595a7f68 authored by Michael Fladischer's avatar Michael Fladischer
Browse files

Add patch for Django 4 compatibility (Closes: #1013555).

parent f580a0eb
No related branches found
No related tags found
No related merge requests found
python-django-csp (3.7-3) UNRELEASED; urgency=medium
* Add patch for Django 4 compatibility (Closes: #1013555).
-- Michael Fladischer <fladi@debian.org> Sat, 30 Jul 2022 18:56:57 +0000
python-django-csp (3.7-2) unstable; urgency=low
[ Debian Janitor ]
......
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()
0001-Remove-PEP8-and-flakes-options-from-pytest-call.patch
0002-Django-4-compatibility.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment