Ticket #6200: test-login-url_r6917.diff
File test-login-url_r6917.diff, 1.1 KB (added by , 17 years ago) |
---|
-
tests/runtests.py
93 93 old_root_urlconf = settings.ROOT_URLCONF 94 94 old_template_dirs = settings.TEMPLATE_DIRS 95 95 old_use_i18n = settings.USE_I18N 96 old_login_url = settings.LOGIN_URL 96 97 old_language_code = settings.LANGUAGE_CODE 97 98 old_middleware_classes = settings.MIDDLEWARE_CLASSES 98 99 … … 102 103 settings.TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), TEST_TEMPLATE_DIR),) 103 104 settings.USE_I18N = True 104 105 settings.LANGUAGE_CODE = 'en' 106 settings.LOGIN_URL = '/accounts/login/' 105 107 settings.MIDDLEWARE_CLASSES = ( 106 108 'django.contrib.sessions.middleware.SessionMiddleware', 107 109 'django.contrib.auth.middleware.AuthenticationMiddleware', … … 153 155 settings.TEMPLATE_DIRS = old_template_dirs 154 156 settings.USE_I18N = old_use_i18n 155 157 settings.LANGUAGE_CODE = old_language_code 158 settings.LOGIN_URL = old_login_url 156 159 settings.MIDDLEWARE_CLASSES = old_middleware_classes 157 160 158 161 if __name__ == "__main__":