Ticket #5453: test_database_name.diff
File test_database_name.diff, 1.2 KB (added by , 17 years ago) |
---|
-
Users/mcroydon/code/python/sprint/django-trunk/tests/runtests.py
15 15 MODEL_TESTS_DIR_NAME = 'modeltests' 16 16 REGRESSION_TESTS_DIR_NAME = 'regressiontests' 17 17 18 TEST_DATABASE_NAME = 'django_test_db'19 18 TEST_TEMPLATE_DIR = 'templates' 20 19 21 20 CONTRIB_DIR = os.path.dirname(contrib.__file__) … … 97 96 old_middleware_classes = settings.MIDDLEWARE_CLASSES 98 97 99 98 # Redirect some settings for the duration of these tests. 100 settings.TEST_DATABASE_NAME = TEST_DATABASE_NAME101 99 settings.INSTALLED_APPS = ALWAYS_INSTALLED_APPS 102 100 settings.ROOT_URLCONF = 'urls' 103 101 settings.TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), TEST_TEMPLATE_DIR),) … … 150 148 151 149 # Restore the old settings. 152 150 settings.INSTALLED_APPS = old_installed_apps 153 settings.TESTS_DATABASE_NAME = old_test_database_name154 151 settings.ROOT_URLCONF = old_root_urlconf 155 152 settings.TEMPLATE_DIRS = old_template_dirs 156 153 settings.USE_I18N = old_use_i18n