"""Self-contained settings for offline payment-adapter validation.

They intentionally use the same Ocyan plugin discovery path as a consuming
project, but do not rely on Kitchensink's local ``empty_testproject`` package.
"""

from pathlib import Path
from tempfile import gettempdir

from ocyan.main.settings import *  # noqa: F403

TEST_RUNTIME_DIR = Path(gettempdir())
SECRET_KEY = "payment-mollie-offline-test-key"
ROOT_URLCONF = "ocyan.plugin.payment_mollie.test_urls"
DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.sqlite3",
        "NAME": str(TEST_RUNTIME_DIR / "ocyan-payment-mollie-test.sqlite3"),
    }
}
STATIC_URL = "/static/"
STATIC_ROOT = str(TEST_RUNTIME_DIR / "ocyan-payment-mollie-static")
MEDIA_URL = "/media/"
MEDIA_ROOT = str(TEST_RUNTIME_DIR / "ocyan-payment-mollie-media")
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
DEFAULT_TO_EMAIL = ()
SILENCED_SYSTEM_CHECKS = ["oscar_quotation.E001"]
