# pylint: disable=unused-wildcard-import,wildcard-import,wrong-import-position
import os

os.environ["IT_APP_ENVIRONMENT"] = "local"

from .base import *  # noqa

# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
DATABASES["default"]["NAME"] = "vbv_lernwelt_cypress"

# EMAIL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#email-backend
EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend"

CYPRESS_TEST = True

# Your stuff...
# ------------------------------------------------------------------------------
REST_FRAMEWORK["DEFAULT_THROTTLE_RATES"] = {
    "anon": "10000/day",
    "hour-throttle": "40000/hour",
    "day-throttle": "2000000/day",
}

RATELIMIT_ENABLE = False

# Select faster password hasher during tests
PASSWORD_HASHERS = [
    "django.contrib.auth.hashers.MD5PasswordHasher",
]
