From 11856ea44e4dd1ff2358c559c0d04ac848832c23 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 25 Jan 2017 13:53:38 -0500 Subject: [PATCH] Refs #27741 -- Fixed staticfiles_tests.test_views when run in isolation. --- tests/staticfiles_tests/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/staticfiles_tests/settings.py b/tests/staticfiles_tests/settings.py index 0c944b8191..1320da7a0d 100644 --- a/tests/staticfiles_tests/settings.py +++ b/tests/staticfiles_tests/settings.py @@ -22,4 +22,7 @@ TEST_SETTINGS = { 'staticfiles_tests.apps.test', 'staticfiles_tests.apps.no_label', ], + # In particular, AuthenticationMiddleware can't be used because + # contrib.auth isn't in INSTALLED_APPS. + 'MIDDLEWARE': [], }