Changeset 3181
- Timestamp:
- 06/20/06 09:27:44 (2 years ago)
- Files:
-
- django/trunk/tests/runtests.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/runtests.py
r3177 r3181 25 25 ALWAYS_INSTALLED_APPS = [ 26 26 'django.contrib.contenttypes', 27 'django.contrib.auth', 27 'django.contrib.auth', 28 28 'django.contrib.sites', 29 29 'django.contrib.flatpages', … … 36 36 def get_test_models(): 37 37 models = [] 38 for loc in MODEL_TESTS_DIR_NAME, REGRESSION_TESTS_DIR_NAME:39 for f in os.listdir( loc):38 for loc, dirpath in (MODEL_TESTS_DIR_NAME, MODEL_TEST_DIR), (REGRESSION_TESTS_DIR_NAME, REGRESSION_TEST_DIR): 39 for f in os.listdir(dirpath): 40 40 if f.startswith('__init__') or f.startswith('.') or f.startswith('sql'): 41 41 continue … … 140 140 else: 141 141 # Create the test database and connect to it. We need to autocommit 142 # if the database supports it because PostgreSQL doesn't allow 142 # if the database supports it because PostgreSQL doesn't allow 143 143 # CREATE/DROP DATABASE statements within transactions. 144 144 cursor = connection.cursor() … … 162 162 # Initialize the test database. 163 163 cursor = connection.cursor() 164 164 165 165 # Install the core always installed apps 166 166 for app in ALWAYS_INSTALLED_APPS: … … 266 266 else: 267 267 print "All tests passed." 268 268 269 269 def _set_autocommit(self, connection): 270 270 """
