From b85712396438e415fcc1dd543e03eb35a6365ce7 Mon Sep 17 00:00:00 2001 From: Colm O'Connor Date: Tue, 22 Sep 2015 21:51:46 +0800 Subject: [PATCH] Make the Django tests send emails using the SMTP back end so that it can be interacted with via the test. --- {{cookiecutter.repo_name}}/tests/settings.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/{{cookiecutter.repo_name}}/tests/settings.yml b/{{cookiecutter.repo_name}}/tests/settings.yml index 655374ea9..c3b0c8e2f 100644 --- a/{{cookiecutter.repo_name}}/tests/settings.yml +++ b/{{cookiecutter.repo_name}}/tests/settings.yml @@ -9,6 +9,7 @@ environment_variables: DATABASE_URL: postgres://{{cookiecutter.repo_name}}:password@127.0.0.1:15432/{{cookiecutter.repo_name}} SECRET_KEY: cj5^uos4tfCdfghjkf5hq$9$(@-79^e9&x$3vyf#igvsfm4d=+ CELERY_BROKER_URL: redis://localhost:16379 + DJANGO_EMAIL_BACKEND: django.core.mail.backends.smtp.EmailBackend window_size: width: 450 height: 450