1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Moved contrib.sites tests out of contrib.

This commit is contained in:
Tim Graham 2015-02-10 07:51:02 -05:00
parent d3a725054f
commit d8341bf024
2 changed files with 6 additions and 7 deletions

View File

View File

@ -2,19 +2,18 @@ from __future__ import unicode_literals
from django.apps import apps
from django.conf import settings
from django.contrib.sites import models
from django.contrib.sites.management import create_default_site
from django.contrib.sites.middleware import CurrentSiteMiddleware
from django.contrib.sites.models import Site, clear_site_cache
from django.contrib.sites.requests import RequestSite
from django.contrib.sites.shortcuts import get_current_site
from django.core.exceptions import ObjectDoesNotExist, ValidationError
from django.db.models.signals import post_migrate
from django.http import HttpRequest
from django.test import TestCase, modify_settings, override_settings
from django.test.utils import captured_stdout
from . import models
from .management import create_default_site
from .middleware import CurrentSiteMiddleware
from .models import Site, clear_site_cache
from .requests import RequestSite
from .shortcuts import get_current_site
@modify_settings(INSTALLED_APPS={'append': 'django.contrib.sites'})
class SitesFrameworkTests(TestCase):