From 12c807d0c8e6e7332614765d1394d2ae887e141b Mon Sep 17 00:00:00 2001 From: Dylan Young Date: Wed, 25 May 2022 01:31:23 -0300 Subject: [PATCH] fixup! GH-72 Add tests for FormattedPolicyCSPMiddleware --- csp/tests/test_contrib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csp/tests/test_contrib.py b/csp/tests/test_contrib.py index 2140505..ae542c2 100644 --- a/csp/tests/test_contrib.py +++ b/csp/tests/test_contrib.py @@ -26,7 +26,7 @@ def test_report_percentage(): assert 400 <= times_seen <= 600 -@override_legacy_settings(CSP_DEFAULT_SRC=["{host}"]) +@override_settings(CSP_DEFAULT_SRC=["{host}"]) def test_formatted_policy(): request = rf.get('/', HTTP_HOST='example.com') response = HttpResponse()