import os

TEST_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "tests")

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

INSTALLED_APPS = ["menu"]

STATIC_URL = "/static/"
STATIC_ROOT = os.path.join(TEST_DIR, "static")

SECRET_KEY = "testing-menus-is-so-much-fun"

TEMPLATES = [
    {
        "BACKEND": "django.template.backends.django.DjangoTemplates",
        "DIRS": [
            os.path.join(TEST_DIR, "test_templates"),
        ],
        "APP_DIRS": True,
        "OPTIONS": {
            "context_processors": [
                "django.template.context_processors.debug",
                "django.template.context_processors.request",
                "django.contrib.auth.context_processors.auth",
                "django.contrib.messages.context_processors.messages",
            ],
        },
    },
]
