Commit 3d08be33 by stv

Disable sneakpeek middleware during tests

parent f59347ef
......@@ -20,6 +20,12 @@ from warnings import filterwarnings
# import settings from LMS for consistent behavior with CMS
from lms.envs.test import (WIKI_ENABLED)
# Remove sneakpeek during tests to prevent unwanted redirect
MIDDLEWARE_CLASSES = tuple([
mwc for mwc in MIDDLEWARE_CLASSES
if mwc != 'sneakpeek.middleware.SneakPeekLogoutMiddleware'
])
# Nose Test Runner
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment