Ticket #17032: template_dirs_in_auth_tests.txt

File template_dirs_in_auth_tests.txt, 746 bytes (added by jMyles, 4 years ago)
Line 
1Index: django/contrib/auth/tests/views.py
2===================================================================
3--- django/contrib/auth/tests/views.py  (revision 16381)
4+++ django/contrib/auth/tests/views.py  (working copy)
5@@ -25,9 +25,7 @@
6         settings.LANGUAGES = (('en', 'English'),)
7         settings.LANGUAGE_CODE = 'en'
8         self.old_TEMPLATE_DIRS = settings.TEMPLATE_DIRS
9-        settings.TEMPLATE_DIRS = (
10-            os.path.join(os.path.dirname(__file__), 'templates'),
11-        )
12+        settings.TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), 'templates'),) + self.old_TEMPLATE_DIRS #Put the auth test templates at the front of the tuple.
13 
14     def tearDown(self):
15         settings.LANGUAGES = self.old_LANGUAGES
Back to Top