from __future__ import unicode_literals

AUTHENTICATION_BACKENDS = [
    "django.contrib.auth.backends.ModelBackend",
    "sesame.backends.ModelBackend",
]

CACHES = {"default": {"BACKEND": "django.core.cache.backends.locmem.LocMemCache"}}

DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3"}}

INSTALLED_APPS = [
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "sesame",
    "sesame.test_app",
]

LOGGING_CONFIG = None

MIDDLEWARE = [
    "django.contrib.sessions.middleware.SessionMiddleware",
    "django.contrib.auth.middleware.AuthenticationMiddleware",
]

ROOT_URLCONF = "sesame.test_urls"

SECRET_KEY = "Anyone who finds an URL will be able to log in. Seriously."

SESSION_ENGINE = "django.contrib.sessions.backends.cache"

TEMPLATES = [{"BACKEND": "django.template.backends.django.DjangoTemplates"}]

from __future__ import unicode_literals

AUTHENTICATION_BACKENDS = [
    "django.contrib.auth.backends.ModelBackend",
    "sesame.backends.ModelBackend",
]

CACHES = {"default": {"BACKEND": "django.core.cache.backends.locmem.LocMemCache"}}

DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3"}}

INSTALLED_APPS = [
    "django.contrib.auth",
    "django.contrib.contenttypes",
    "sesame",
    "sesame.test_app",
]

LOGGING_CONFIG = None

MIDDLEWARE = [
    "django.contrib.sessions.middleware.SessionMiddleware",
    "django.contrib.auth.middleware.AuthenticationMiddleware",
]

PASSWORD_HASHERS = ["django.contrib.auth.hashers.SHA1PasswordHasher"]

ROOT_URLCONF = "sesame.test_urls"

SECRET_KEY = "Anyone who finds an URL will be able to log in. Seriously."

SESSION_ENGINE = "django.contrib.sessions.backends.cache"

TEMPLATES = [{"BACKEND": "django.template.backends.django.DjangoTemplates"}]

Use a fast password hasher for tests.
Use a fast password hasher for tests.

Speed is obviously more important than security in tests.
