From e15c2c5187d4aaaa711d2fbecd420340af0c1208 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 4 May 2020 16:05:24 -0400 Subject: [PATCH] Remove load_test.py which we don't use anywhere. --- lms/envs/load_test.py | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 lms/envs/load_test.py diff --git a/lms/envs/load_test.py b/lms/envs/load_test.py deleted file mode 100644 index 94b042924d..0000000000 --- a/lms/envs/load_test.py +++ /dev/null @@ -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))