1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Imported override_settings from its new location.

This commit is contained in:
Aymeric Augustin
2013-12-23 16:01:13 +01:00
parent da16bb30ff
commit e32095616c
91 changed files with 113 additions and 154 deletions

View File

@@ -10,8 +10,7 @@ from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ImproperlyConfigured, PermissionDenied
from django.contrib.auth import authenticate, get_user
from django.http import HttpRequest
from django.test import TestCase
from django.test.utils import override_settings
from django.test import TestCase, override_settings
from django.contrib.auth.hashers import MD5PasswordHasher

View File

@@ -11,9 +11,8 @@ from django.contrib.auth.tests.utils import skipIfCustomUser
from django.core.exceptions import ImproperlyConfigured
from django.core.management import call_command
from django.dispatch import receiver
from django.test import TestCase
from django.test import TestCase, override_settings
from django.test.signals import setting_changed
from django.test.utils import override_settings
from django.utils import translation
from django.utils.encoding import force_str
from django.utils.six import binary_type, PY2, StringIO

View File

@@ -7,8 +7,7 @@ from django.contrib.auth.models import User, Permission
from django.contrib.contenttypes.models import ContentType
from django.contrib.auth.context_processors import PermWrapper, PermLookupDict
from django.db.models import Q
from django.test import TestCase
from django.test.utils import override_settings
from django.test import TestCase, override_settings
from django.utils._os import upath

View File

@@ -12,8 +12,7 @@ from django.contrib.auth.forms import (UserCreationForm, AuthenticationForm,
from django.contrib.auth.tests.utils import skipIfCustomUser
from django.core import mail
from django.forms.fields import Field, CharField
from django.test import TestCase
from django.test.utils import override_settings
from django.test import TestCase, override_settings
from django.utils.encoding import force_text
from django.utils._os import upath
from django.utils import translation

View File

@@ -5,7 +5,7 @@ from django.contrib.auth.models import User, Group
from django.contrib.auth.tests.custom_user import CustomUser
from django.contrib.auth.tests.utils import skipIfCustomUser
from django.test import TransactionTestCase
from django.test.utils import override_settings
from django.test import override_settings
# This must be a TransactionTestCase because the WSGI auth handler performs

View File

@@ -13,8 +13,7 @@ from django.core import exceptions
from django.core.management import call_command
from django.core.management.base import CommandError
from django.core.management.validation import get_validation_errors
from django.test import TestCase
from django.test.utils import override_settings
from django.test import TestCase, override_settings
from django.utils import six
from django.utils.six import StringIO

View File

@@ -3,8 +3,7 @@ from django.contrib.auth.models import AbstractUser, Group, User, UserManager
from django.contrib.auth.tests.utils import skipIfCustomUser
from django.core import mail
from django.db.models.signals import post_save
from django.test import TestCase
from django.test.utils import override_settings
from django.test import TestCase, override_settings
@skipIfCustomUser

View File

@@ -3,7 +3,7 @@ from django.contrib.auth.models import User
from django.contrib.auth.tests.utils import skipIfCustomUser
from django.test import TestCase
from django.test.client import RequestFactory
from django.test.utils import override_settings
from django.test import override_settings
@skipIfCustomUser

View File

@@ -7,7 +7,7 @@ from django.contrib.auth.views import (
password_reset_complete, password_change, password_change_done,
)
from django.test import RequestFactory, TestCase
from django.test.utils import override_settings
from django.test import override_settings
from django.utils.encoding import force_bytes, force_text
from django.utils.http import urlsafe_base64_encode

View File

@@ -14,8 +14,8 @@ from django.utils.encoding import force_text
from django.utils.http import urlquote
from django.utils.six.moves.urllib.parse import urlparse, ParseResult
from django.utils._os import upath
from django.test import TestCase
from django.test.utils import override_settings, patch_logger
from django.test import TestCase, override_settings
from django.test.utils import patch_logger
from django.middleware.csrf import CsrfViewMiddleware
from django.contrib.sessions.middleware import SessionMiddleware

View File

@@ -5,8 +5,7 @@ from django.contrib.contenttypes.views import shortcut
from django.contrib.sites.models import get_current_site
from django.db import models
from django.http import HttpRequest, Http404
from django.test import TestCase
from django.test.utils import override_settings
from django.test import TestCase, override_settings
from django.utils.http import urlquote
from django.utils import six
from django.utils.encoding import python_2_unicode_compatible

View File

@@ -2,7 +2,7 @@ import os
from django.contrib.auth.models import User
from django.contrib.auth.tests.utils import skipIfCustomUser
from django.test import TestCase, Client
from django.test.utils import override_settings
from django.test import override_settings
@override_settings(

View File

@@ -3,8 +3,7 @@ from __future__ import unicode_literals
from django.conf import settings
from django.contrib.flatpages.forms import FlatpageForm
from django.contrib.flatpages.models import FlatPage
from django.test import TestCase
from django.test.utils import override_settings
from django.test import TestCase, override_settings
from django.utils import translation

View File

@@ -3,8 +3,7 @@ from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.auth.tests.utils import skipIfCustomUser
from django.contrib.flatpages.models import FlatPage
from django.test import TestCase
from django.test.utils import override_settings
from django.test import TestCase, override_settings
@override_settings(

View File

@@ -2,8 +2,7 @@ import os
from django.contrib.auth.models import AnonymousUser, User
from django.contrib.auth.tests.utils import skipIfCustomUser
from django.template import Template, Context, TemplateSyntaxError
from django.test import TestCase
from django.test.utils import override_settings
from django.test import TestCase, override_settings
@override_settings(

View File

@@ -3,8 +3,7 @@ from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.auth.tests.utils import skipIfCustomUser
from django.contrib.flatpages.models import FlatPage
from django.test import TestCase
from django.test.utils import override_settings
from django.test import TestCase, override_settings
@override_settings(

View File

@@ -8,8 +8,7 @@ import warnings
from django import http
from django.contrib.formtools import preview, utils
from django.test import TestCase
from django.test.utils import override_settings
from django.test import TestCase, override_settings
from django.utils._os import upath
from django.contrib.formtools.tests.forms import (

View File

@@ -4,8 +4,7 @@ from unittest import skipUnless
from django.contrib.gis.geos import HAS_GEOS
from django.contrib.gis.tests.utils import HAS_SPATIAL_DB
from django.test import TestCase
from django.test.utils import override_settings
from django.test import TestCase, override_settings
if HAS_GEOS and HAS_SPATIAL_DB:
from django.contrib.gis import admin

View File

@@ -11,8 +11,8 @@ except ImportError:
from django.conf import settings
from django.contrib.humanize.templatetags import humanize
from django.template import Template, Context, defaultfilters
from django.test import TestCase
from django.test.utils import override_settings, TransRealMixin
from django.test import TestCase, override_settings
from django.test.utils import TransRealMixin
from django.utils.html import escape
from django.utils.timezone import utc, get_fixed_timezone
from django.utils import translation

View File

@@ -9,7 +9,7 @@ from django.contrib.messages.constants import DEFAULT_LEVELS
from django.contrib.messages.storage import default_storage, base
from django.contrib.messages.storage.base import Message
from django.core.urlresolvers import reverse
from django.test.utils import modify_settings, override_settings
from django.test import modify_settings, override_settings
from django.utils.translation import ugettext_lazy

View File

@@ -5,8 +5,7 @@ from django.contrib.messages.tests.base import BaseTests
from django.contrib.messages.storage.cookie import (CookieStorage,
MessageEncoder, MessageDecoder)
from django.contrib.messages.storage.base import Message
from django.test import TestCase
from django.test.utils import override_settings
from django.test import TestCase, override_settings
from django.utils.safestring import SafeData, mark_safe

View File

@@ -2,8 +2,7 @@ from django import http
from django.conf import settings
from django.contrib.sites.models import Site
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase
from django.test.utils import modify_settings, override_settings
from django.test import TestCase, modify_settings, override_settings
from django.utils import six
from .middleware import RedirectFallbackMiddleware

View File

@@ -20,8 +20,8 @@ from django.core.cache.backends.base import InvalidCacheBackendError
from django.core import management
from django.core.exceptions import ImproperlyConfigured
from django.http import HttpResponse
from django.test import TestCase, RequestFactory
from django.test.utils import override_settings, patch_logger
from django.test import TestCase, RequestFactory, override_settings
from django.test.utils import patch_logger
from django.utils import six
from django.utils import timezone

View File

@@ -1,6 +1,6 @@
from __future__ import unicode_literals
from django.test.utils import override_settings
from django.test import override_settings
from .base import TestModel, SitemapTestsBase

View File

@@ -2,7 +2,7 @@ from __future__ import unicode_literals
from datetime import date
from django.test.utils import override_settings
from django.test import override_settings
from .base import SitemapTestsBase

View File

@@ -4,8 +4,7 @@ from django.conf import settings
from django.contrib.sites.models import Site, RequestSite, get_current_site
from django.core.exceptions import ObjectDoesNotExist, ValidationError
from django.http import HttpRequest
from django.test import TestCase
from django.test.utils import modify_settings, override_settings
from django.test import TestCase, modify_settings, override_settings
@modify_settings(INSTALLED_APPS={'append': 'django.contrib.sites'})