Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #5453 -- Fixed TEST_DATABASE_NAME handling to match documentati…

…on. Thanks, Matt Croydon.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b7df72083958122194740fdb5a9f7d4714114e37 1 parent ced90f4
Malcolm Tredinnick authored September 14, 2007

Showing 1 changed file with 0 additions and 3 deletions. Show diff stats Hide diff stats

  1. 3  tests/runtests.py
3  tests/runtests.py
@@ -15,7 +15,6 @@
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,7 +96,6 @@ def django_tests(verbosity, interactive, test_labels):
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_NAME
101 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,7 +148,6 @@ def django_tests(verbosity, interactive, test_labels):
150 148
 
151 149
     # Restore the old settings.
152 150
     settings.INSTALLED_APPS = old_installed_apps
153  
-    settings.TESTS_DATABASE_NAME = old_test_database_name
154 151
     settings.ROOT_URLCONF = old_root_urlconf
155 152
     settings.TEMPLATE_DIRS = old_template_dirs
156 153
     settings.USE_I18N = old_use_i18n

0 notes on commit b7df720

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