From 5bcc1ed9df4e7a6b8086cac3f25a466aee3bebcd Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 16 Jun 2018 17:52:31 +0200 Subject: Add first structure of the application --- src/tests/test_db.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/tests/test_db.py (limited to 'src/tests/test_db.py') 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 -- cgit v1.2.1