Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #14478 -- Isolated messages tests from custom TEMPLATE_CONTEXT_…

…PROCESSORS
  • Loading branch information...
commit 6522283a712af96a98e99d675b69ca15aadbace8 1 parent 7676d6e
Claude Paroz claudep authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/contrib/messages/tests/base.py
3  django/contrib/messages/tests/base.py
View
@@ -1,5 +1,5 @@
from django import http
-from django.conf import settings
+from django.conf import settings, global_settings
from django.contrib.messages import constants, utils, get_level, set_level
from django.contrib.messages.api import MessageFailure
from django.contrib.messages.storage import default_storage, base
@@ -57,6 +57,7 @@ class BaseTest(TestCase):
def setUp(self):
self.settings_override = override_settings_tags(
TEMPLATE_DIRS = (),
+ TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS,
MESSAGE_TAGS = '',
MESSAGE_STORAGE = '%s.%s' % (self.storage_class.__module__,
self.storage_class.__name__),
Please sign in to comment.
Something went wrong with that request. Please try again.