diff options
| author | Tim Graham <timograham@gmail.com> | 2015-02-10 07:51:02 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-02-11 10:19:22 -0500 |
| commit | d8341bf02444e58ff62afe04f15d9679a1b5b8f8 (patch) | |
| tree | 425765ad4863c027b814dde1a6759bbf7839d3c8 | |
| parent | d3a725054fa260e84c788b240fd03cbd0ccc1151 (diff) | |
Moved contrib.sites tests out of contrib.
| -rw-r--r-- | tests/sites_tests/__init__.py | 0 | ||||
| -rw-r--r-- | tests/sites_tests/tests.py (renamed from django/contrib/sites/tests.py) | 13 |
2 files changed, 6 insertions, 7 deletions
diff --git a/tests/sites_tests/__init__.py b/tests/sites_tests/__init__.py new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/tests/sites_tests/__init__.py diff --git a/django/contrib/sites/tests.py b/tests/sites_tests/tests.py index f58c807622..eeb6a44646 100644 --- a/django/contrib/sites/tests.py +++ b/tests/sites_tests/tests.py @@ -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): |
