aboutsummaryrefslogtreecommitdiff
path: root/app/tests/conftest.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2021-06-06 14:58:14 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2021-06-06 14:58:14 +0530
commit47b68d56d831d234c44da9530373b95dae338ea4 (patch)
tree286455da83e2ad6c7992a9cea9d92bc83484198c /app/tests/conftest.py
parenta1a5fcdcd2380d7130938dd69afd87eb7b544d2e (diff)
add test for verified email
Diffstat (limited to 'app/tests/conftest.py')
-rw-r--r--app/tests/conftest.py2
1 files changed, 2 insertions, 0 deletions
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