diff options
| author | Joseph Kocherhans <joseph@jkocherhans.com> | 2006-06-19 15:23:57 +0000 |
|---|---|---|
| committer | Joseph Kocherhans <joseph@jkocherhans.com> | 2006-06-19 15:23:57 +0000 |
| commit | adf4b9311d5d64a2bdd58da50271c121ea22e397 (patch) | |
| tree | a69b3b023595cf1ce67a14c4c1ecd3290d94088e /tests/runtests.py | |
| parent | e976ed1f7910fad03704f88853c5c5b36cbab134 (diff) | |
multi-auth: Merged to [3151]archive/attic/multi-auth
git-svn-id: http://code.djangoproject.com/svn/django/branches/multi-auth@3152 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/runtests.py')
| -rwxr-xr-x | tests/runtests.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/runtests.py b/tests/runtests.py index f0eee97ec5..87cad83124 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -21,14 +21,14 @@ def log_error(model_name, title, description): MODEL_TEST_DIR = os.path.join(os.path.dirname(__file__), MODEL_TESTS_DIR_NAME) ALWAYS_INSTALLED_APPS = [ - 'django.contrib.admin', - 'django.contrib.auth', - 'django.contrib.comments', 'django.contrib.contenttypes', + 'django.contrib.auth', + 'django.contrib.sites', 'django.contrib.flatpages', 'django.contrib.redirects', 'django.contrib.sessions', - 'django.contrib.sites', + 'django.contrib.comments', + 'django.contrib.admin', ] def get_test_models(): @@ -148,6 +148,12 @@ class TestRunner: # Initialize the test database. cursor = connection.cursor() + + # Install the core always installed apps + for app in ALWAYS_INSTALLED_APPS: + self.output(1, "Installing contrib app %s" % app) + mod = __import__(app + ".models", '', '', ['']) + management.install(mod) # Run the tests for each test model. self.output(1, "Running app tests") |
