aboutsummaryrefslogtreecommitdiff
path: root/app/tests/conftest.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2021-06-07 13:52:20 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2021-06-07 13:52:20 +0530
commit359813517e3382c527125fe673fa89f0fd0742c0 (patch)
tree5010e2427cf0d19e7365e44fac40612375c135c9 /app/tests/conftest.py
parentb752efffe410c9cc9cd53f8c50a5fb9f75069e93 (diff)
added docstrings
Diffstat (limited to 'app/tests/conftest.py')
-rw-r--r--app/tests/conftest.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/tests/conftest.py b/app/tests/conftest.py
index 71eb677..68af9e5 100644
--- a/app/tests/conftest.py
+++ b/app/tests/conftest.py
@@ -1,3 +1,7 @@
+# -*- coding: utf-8 -*-
+"""
+Configuration with basic fixtures
+"""
import pytest
from app import app as flask_app
@@ -8,6 +12,11 @@ import os
@pytest.fixture
def app():
+ """
+ Special configurations for tests
+
+ We use a dummy database and initialise it.
+ """
flask_app.config["WTF_CSRF_ENABLED"] = False
flask_app.config["SQLALCHEMY_DATABASE_URI"] = (
"sqlite:///" + tempfile.mkstemp(suffix=".db")[-1]