From 47b68d56d831d234c44da9530373b95dae338ea4 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Sun, 6 Jun 2021 14:58:14 +0530 Subject: add test for verified email --- app/tests/conftest.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/tests/conftest.py') diff --git a/app/tests/conftest.py b/app/tests/conftest.py index 1da24d3..0fd1ef1 100644 --- a/app/tests/conftest.py +++ b/app/tests/conftest.py @@ -9,6 +9,8 @@ import os def app(): flask_app.config['WTF_CSRF_ENABLED'] = False flask_app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///" + tempfile.mkstemp(suffix='.db')[-1] + flask_app.config['MAIL_BACKEND'] = "file" #"locmem" + flask_app.config["MAIL_FILE_PATH"] = '/tmp/app-messages' db.create_all() yield flask_app -- cgit v1.2.3