Ticket #5979: test_siteid_overwrite_r6720.patch

File test_siteid_overwrite_r6720.patch, 530 bytes (added by George Vilches, 17 years ago)

Forces SITE_ID to 1 for unit tests, patch against r6720.

  • tests/runtests.py

     
    107107        'django.contrib.auth.middleware.AuthenticationMiddleware',
    108108        'django.middleware.common.CommonMiddleware',
    109109    )
    110     if not hasattr(settings, 'SITE_ID'):
    111         settings.SITE_ID = 1
     110    settings.SITE_ID = 1
    112111
    113112    # Load all the ALWAYS_INSTALLED_APPS.
    114113    # (This import statement is intentionally delayed until after we
Back to Top