aboutsummaryrefslogtreecommitdiff
path: root/src/tests/test_db.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/test_db.py')
-rw-r--r--src/tests/test_db.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/test_db.py b/src/tests/test_db.py
new file mode 100644
index 0000000..5830f78
--- /dev/null
+++ b/src/tests/test_db.py
@@ -0,0 +1,8 @@
+import pytest
+
+from lb_app.app_db.db import MongoDB
+
+def test_get_close_db(app):
+ with app.app_context():
+ db = MongoDB(app)
+ assert type(db) is MongoDB