mybuddy/babybuddy/settings/test.py

31 lines
772 B
Python
Raw Normal View History

2021-06-22 03:47:57 +00:00
from .base import *
2022-02-10 00:00:30 +00:00
SECRET_KEY = "TESTS"
2021-06-22 03:47:57 +00:00
# Password hasher configuration
2024-01-14 04:22:08 +00:00
# See https://docs.djangoproject.com/en/5.0/ref/settings/#password-hashers
# See https://docs.djangoproject.com/en/5.0/topics/testing/overview/#password-hashing
2021-06-22 03:47:57 +00:00
PASSWORD_HASHERS = [
2022-02-10 00:00:30 +00:00
"django.contrib.auth.hashers.MD5PasswordHasher",
2021-06-22 03:47:57 +00:00
]
# Email
2024-01-14 04:22:08 +00:00
# https://docs.djangoproject.com/en/5.0/topics/email/
EMAIL_BACKEND = "django.core.mail.backends.locmem.EmailBackend"
2021-06-22 03:47:57 +00:00
# Axes configuration
# See https://django-axes.readthedocs.io/en/latest/4_configuration.html
AXES_ENABLED = False
# DBSettings configuration
# See https://github.com/zlorf/django-dbsettings#a-note-about-caching
DBSETTINGS_USE_CACHE = False
2023-07-04 22:17:00 +00:00
# We want to test the home assistant middleware
ENABLE_HOME_ASSISTANT_SUPPORT = True