Ticket #17909: 17909-1.diff

File 17909-1.diff, 525 bytes (added by claudep, 3 years ago)

Adding more apps when testing geodjango

  • tests/runtests.py

    diff --git a/tests/runtests.py b/tests/runtests.py
    index 944c6aa..fb64621 100755
    a b def setup(verbosity, test_labels): 
    117117    if geodjango(settings):
    118118        from django.contrib.gis.tests import geo_apps
    119119        test_modules.extend(geo_apps(runtests=True))
     120        settings.INSTALLED_APPS.extend(['django.contrib.gis', 'django.contrib.sitemaps'])
    120121
    121122    for module_dir, module_name in test_modules:
    122123        module_label = '.'.join([module_dir, module_name])
Back to Top