aboutsummaryrefslogtreecommitdiff
path: root/app/tests/conftest.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2021-06-06 15:49:56 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2021-06-06 15:49:56 +0530
commit812220acbfd41aea0382fcd9a37a989a4b091d66 (patch)
tree0f4277216efe81e6b8d21d9dfc39a3d343fac48e /app/tests/conftest.py
parentad92a42e8439337cfde346fa84e75a5f91164eac (diff)
parent62a5ca363415b0f6f98785b6c3522a71fc895a72 (diff)
fixing pull
Diffstat (limited to 'app/tests/conftest.py')
-rw-r--r--app/tests/conftest.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/app/tests/conftest.py b/app/tests/conftest.py
index 0fd1ef1..71eb677 100644
--- a/app/tests/conftest.py
+++ b/app/tests/conftest.py
@@ -5,14 +5,18 @@ from app import db
import tempfile
import os
+
@pytest.fixture
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
+ 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
+
@pytest.fixture
def client(app):