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
# See https://docs.djangoproject.com/en/4.0/ref/settings/#password-hashers
# See https://docs.djangoproject.com/en/4.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
# https://docs.djangoproject.com/en/4.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