Update tests.py

This commit is contained in:
Martin Mahner 2020-01-21 23:24:13 +01:00 committed by GitHub
parent d0f7e2eda6
commit cb7719b59f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,8 +8,3 @@ from .base import * # noqa
SECRET_KEY = "test-key"
DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}}
# Drop CSP middleware for Django 3.0 until it was fixed upstream
# https://github.com/mozilla/django-csp/issues/129
if django.get_version().startswith("3."):
MIDDLEWARE.remove("csp.middleware.CSPMiddleware")