allianceauth/tests/settings_core.py
2022-09-07 15:31:22 +02:00

32 lines
696 B
Python

"""
Alliance Auth Test Suite Django settings
Testing core packages only
"""
from allianceauth.project_template.project_name.settings.base import *
# Celery configuration
CELERY_ALWAYS_EAGER = True # Forces celery to run locally for testing
ROOT_URLCONF = "tests.urls"
SITE_URL = "https://example.com"
CSRF_TRUSTED_ORIGINS = [SITE_URL]
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://127.0.0.1:6379/1",
}
}
PASSWORD_HASHERS = [
"django.contrib.auth.hashers.MD5PasswordHasher",
]
LOGGING = None # Comment out to enable logging for debugging
ALLIANCEAUTH_DASHBOARD_TASK_STATISTICS_DISABLED = True # disable for tests