OperationCode/back-end

View on GitHub
src/settings/environments/testing.py

Summary

Maintainability
A
0 mins
Test Coverage
from settings.components import BASE_DIR
from settings.components.base import INSTALLED_APPS
from settings.components.rest import REST_FRAMEWORK

# noinspection PyUnresolvedReferences
MEDIA_ROOT = "/tmp"  # nosec
EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend"
TESTING = True

REST_FRAMEWORK = {**REST_FRAMEWORK, "TEST_REQUEST_DEFAULT_FORMAT": "json"}

INSTALLED_APPS += ["tests"]

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

# Temporary frontend configs
RECAPTCHA_DISABLE = True