Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Reset template context processors cache after tests. Refs #17848.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17736 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1235cd376e6bc8fd5c6cafe4bffeb6fa018e1476 1 parent 14df122
Claude Paroz authored March 14, 2012
4  django/contrib/auth/tests/context_processors.py
@@ -29,6 +29,8 @@ def test_session_not_accessed(self):
29 29
         response = self.client.get('/auth_processor_no_attr_access/')
30 30
         self.assertContains(response, "Session not accessed")
31 31
 
  32
+        context._standard_context_processors = None
  33
+
32 34
     @override_settings(
33 35
         MIDDLEWARE_CLASSES=global_settings.MIDDLEWARE_CLASSES,
34 36
         TEMPLATE_CONTEXT_PROCESSORS=global_settings.TEMPLATE_CONTEXT_PROCESSORS,
@@ -43,6 +45,8 @@ def test_session_is_accessed(self):
43 45
         response = self.client.get('/auth_processor_attr_access/')
44 46
         self.assertContains(response, "Session accessed")
45 47
 
  48
+        context._standard_context_processors = None
  49
+
46 50
     def test_perms_attrs(self):
47 51
         self.client.login(username='super', password='secret')
48 52
         response = self.client.get('/auth_processor_perms/')

0 notes on commit 1235cd3

Please sign in to comment.
Something went wrong with that request. Please try again.