diff options
| author | Justin Bronn <jbronn@gmail.com> | 2009-04-10 19:19:19 +0000 |
|---|---|---|
| committer | Justin Bronn <jbronn@gmail.com> | 2009-04-10 19:19:19 +0000 |
| commit | f1461328319ee49b35cc208b492d99d779209c2f (patch) | |
| tree | f67f86c3fa69a7d374d6ff4d998d954635a835c6 | |
| parent | b366bcc962d6390ecaa462d73fca9004c9e7f44c (diff) | |
No longer create tables for unnecessary applications when running the GeoDjango test suite.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10498 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/gis/tests/__init__.py | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/django/contrib/gis/tests/__init__.py b/django/contrib/gis/tests/__init__.py index e27cf6e3c5..4baa77ab43 100644 --- a/django/contrib/gis/tests/__init__.py +++ b/django/contrib/gis/tests/__init__.py @@ -72,19 +72,11 @@ def run_gis_tests(test_labels, **kwargs): old_installed = settings.INSTALLED_APPS old_root_urlconf = settings.ROOT_URLCONF - # Based on ALWAYS_INSTALLED_APPS from django test suite -- - # this prevents us from creating tables in our test database - # from locally installed apps. - new_installed = ['django.contrib.contenttypes', - 'django.contrib.auth', - 'django.contrib.sites', + # Overridding the INSTALLED_APPS with only what we need, + # to prevent unnecessary database table creation. + new_installed = ['django.contrib.sites', 'django.contrib.sitemaps', - 'django.contrib.flatpages', 'django.contrib.gis', - 'django.contrib.redirects', - 'django.contrib.sessions', - 'django.contrib.comments', - 'django.contrib.admin', ] # Setting the URLs. |
