Remove load_test.py which we don't use anywhere.

This commit is contained in:
Feanil Patel
2020-05-04 16:05:24 -04:00
parent bc8aa8bf7a
commit e15c2c5187

View File

@@ -1,22 +0,0 @@
"""
Settings for load testing.
"""
# We intentionally define lots of variables that aren't used, and
# want to import all variables from base settings files
# pylint: disable=wildcard-import, unused-wildcard-import
from six.moves import filter
from .production import *
# Disable CSRF for load testing
EXCLUDE_CSRF = lambda elem: elem not in [
'django.template.context_processors.csrf',
'django.middleware.csrf.CsrfViewMiddleware'
]
DEFAULT_TEMPLATE_ENGINE['OPTIONS']['context_processors'] = list(filter(
EXCLUDE_CSRF, DEFAULT_TEMPLATE_ENGINE['OPTIONS']['context_processors']
))
MIDDLEWARE = list(filter(EXCLUDE_CSRF, MIDDLEWARE))