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()