Fixed #17909 - ensure GeoDjango tests have the templates they need. Thanks Nate Bragg for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17757 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Carl Meyer 2012-03-17 04:39:23 +00:00
parent ddd53dafb5
commit e57bedee78
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ def setup(verbosity, test_labels):
if geodjango(settings):
from django.contrib.gis.tests import geo_apps
test_modules.extend(geo_apps(runtests=True))
settings.INSTALLED_APPS.extend(['django.contrib.gis', 'django.contrib.sitemaps'])
for module_dir, module_name in test_modules:
module_label = '.'.join([module_dir, module_name])